public IndexingContext addMergedIndexingContext( String id, String repositoryId, File repository, Directory indexDirectory, boolean searchable, Collection<IndexingContext> contexts ) throws IOException { IndexingContext context = new MergedIndexingContext( id, repositoryId, repository, indexDirectory, searchable, new StaticContextMemberProvider( contexts ) ); indexingContexts.put( context.getId(), context ); return context; }
public IndexingContext addMergedIndexingContext( String id, String repositoryId, File repository, Directory indexDirectory, boolean searchable, Collection<IndexingContext> contexts ) throws IOException { IndexingContext context = new MergedIndexingContext( id, repositoryId, repository, indexDirectory, searchable, new StaticContextMemberProvider( contexts ) ); indexingContexts.put( context.getId(), context ); return context; }
public IndexingContext addMergedIndexingContext( String id, String repositoryId, File repository, Directory indexDirectory, boolean searchable, Collection<IndexingContext> contexts ) throws IOException { IndexingContext context = new MergedIndexingContext( id, repositoryId, repository, indexDirectory, searchable, new StaticContextMemberProvider( contexts ) ); indexingContexts.put( context.getId(), context ); return context; }
public IndexingContext addMergedIndexingContext( String id, String repositoryId, File repository, File indexDirectory, boolean searchable, ContextMemberProvider membersProvider ) throws IOException { IndexingContext context = indexer.createMergedIndexingContext( id, repositoryId, repository, indexDirectory, searchable, membersProvider ); indexingContexts.put( context.getId(), context ); return context; }
public IndexingContext addMergedIndexingContext( String id, String repositoryId, File repository, File indexDirectory, boolean searchable, ContextMemberProvider membersProvider ) throws IOException { IndexingContext context = indexer.createMergedIndexingContext( id, repositoryId, repository, indexDirectory, searchable, membersProvider ); indexingContexts.put( context.getId(), context ); return context; }
public IndexingContext addMergedIndexingContext( String id, String repositoryId, File repository, File indexDirectory, boolean searchable, ContextMemberProvider membersProvider ) throws IOException { IndexingContext context = indexer.createMergedIndexingContext( id, repositoryId, repository, indexDirectory, searchable, membersProvider ); indexingContexts.put( context.getId(), context ); return context; }
File cacheDir = new File(mergedDir, "cache"); File indexDir = new File(mergedDir, "index"); ContextMemberProvider members = new StaticContextMemberProvider(indexContexts.values()); mergedContext = indexer.createMergedIndexingContext("all-context", "all", cacheDir, indexDir, true, members);
ContextMemberProvider memberProvider = new StaticContextMemberProvider(members); IndexingContext mergedCtx = indexer.createMergedIndexingContext( tempRepoId, tempRepoId, mergedIndexDirectory.toFile(), indexLocation.toFile(), true, memberProvider);