/** * Locks down participating contexts, and returns a "merged" reader of them. In case of error, unlocks as part of * cleanup and re-throws exception. Without error, it is the duty of caller to unlock contexts! * * @param indexingContexts * @param ignoreContext * @return * @throws IOException */ protected NexusIndexMultiReader getMergedIndexReader( final Collection<IndexingContext> indexingContexts, final boolean ignoreContext ) throws IOException { final List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); return new NexusIndexMultiReader( contexts ); }
/** * Locks down participating contexts, and returns a "merged" reader of them. In case of error, unlocks as part of * cleanup and re-throws exception. Without error, it is the duty of caller to unlock contexts! * * @param indexingContexts * @param ignoreContext * @return * @throws IOException */ protected NexusIndexMultiReader getMergedIndexReader( final Collection<IndexingContext> indexingContexts, final boolean ignoreContext ) throws IOException { final List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); return new NexusIndexMultiReader( contexts ); }
/** * Locks down participating contexts, and returns a "merged" reader of them. In case of error, unlocks as part of * cleanup and re-throws exception. Without error, it is the duty of caller to unlock contexts! * * @param indexingContexts * @param ignoreContext * @return * @throws IOException */ protected NexusIndexMultiReader getMergedIndexReader( final Collection<IndexingContext> indexingContexts, final boolean ignoreContext ) throws IOException { final List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); return new NexusIndexMultiReader( contexts ); }
public IndexSearcher acquireIndexSearcher() throws IOException { final NexusIndexMultiReader mr = new NexusIndexMultiReader( getMembers() ); return new NexusIndexMultiSearcher( mr ); }
public IndexSearcher acquireIndexSearcher() throws IOException { final NexusIndexMultiReader mr = new NexusIndexMultiReader( getMembers() ); return new NexusIndexMultiSearcher( mr ); }
public IndexSearcher acquireIndexSearcher() throws IOException { final NexusIndexMultiReader mr = new NexusIndexMultiReader( getMembers() ); return new NexusIndexMultiSearcher( mr ); }