@Override public boolean isSearchable() { return context.isSearchable(); }
/** * Returns the list of participating contexts. Does not locks them, just builds a list of them. */ protected List<IndexingContext> getParticipatingContexts( final Collection<IndexingContext> indexingContexts, final boolean ignoreContext ) { // to not change the API all away, but we need stable ordering here // filter for those 1st, that take part in here final ArrayList<IndexingContext> contexts = new ArrayList<IndexingContext>( indexingContexts.size() ); for ( IndexingContext ctx : indexingContexts ) { if ( ignoreContext || ctx.isSearchable() ) { contexts.add( ctx ); } } return contexts; }
/** * Returns the list of participating contexts. Does not locks them, just builds a list of them. */ protected List<IndexingContext> getParticipatingContexts( final Collection<IndexingContext> indexingContexts, final boolean ignoreContext ) { // to not change the API all away, but we need stable ordering here // filter for those 1st, that take part in here final ArrayList<IndexingContext> contexts = new ArrayList<IndexingContext>( indexingContexts.size() ); for ( IndexingContext ctx : indexingContexts ) { if ( ignoreContext || ctx.isSearchable() ) { contexts.add( ctx ); } } return contexts; }
/** * Returns the list of participating contexts. Does not locks them, just builds a list of them. */ protected List<IndexingContext> getParticipatingContexts( final Collection<IndexingContext> indexingContexts, final boolean ignoreContext ) { // to not change the API all away, but we need stable ordering here // filter for those 1st, that take part in here final ArrayList<IndexingContext> contexts = new ArrayList<IndexingContext>( indexingContexts.size() ); for ( IndexingContext ctx : indexingContexts ) { if ( ignoreContext || ctx.isSearchable() ) { contexts.add( ctx ); } } return contexts; }
@Override public Set<String> getRemoteIndexingContextIds( String managedRepoId ) throws RepositoryAdminException { Set<String> ids = new HashSet<>(); List<ProxyConnector> proxyConnectors = proxyConnectorAdmin.getProxyConnectorAsMap().get( managedRepoId ); if ( proxyConnectors == null || proxyConnectors.isEmpty() ) { return ids; } for ( ProxyConnector proxyConnector : proxyConnectors ) { String remoteId = "remote-" + proxyConnector.getTargetRepoId(); IndexingContext context = indexer.getIndexingContexts().get( remoteId ); if ( context != null && context.isSearchable() ) { ids.add( remoteId ); } } return ids; }
if ( context.isSearchable() )
&& (ISGROUP(repository) || !INDEXABLE(repository) || !context.getRepository().getAbsolutePath().equals(repoRoot.getAbsolutePath()) || context.isSearchable() != repository.isSearchable())) {
assert rRepo.getIndexingContext() != null; IndexingContext context = rRepo.getIndexingContext().getBaseContext(IndexingContext.class); if (context.isSearchable()) { indexingContextIds.addAll(getRemoteIndexingContextIds(repo)); indexingContextIds.add(context.getId());
try { IndexingContext context = repo.getIndexingContext() != null ? repo.getIndexingContext().getBaseContext(IndexingContext.class) : null; if (context!=null && context.isSearchable()) { ids.add(remoteId);
groupContext.isSearchable(), // new StaticContextMemberProvider(memberContexts))