public FlatSearchResponse searchFlatPaged( FlatSearchRequest request, Collection<IndexingContext> indexingContexts ) throws IOException { return searchFlatPaged( request, indexingContexts, false ); }
public GroupedSearchResponse forceSearchGrouped( GroupedSearchRequest request, Collection<IndexingContext> indexingContexts ) throws IOException { return searchGrouped( request, indexingContexts, true ); }
public IteratorSearchResponse forceSearchIteratorPaged( IteratorSearchRequest request, Collection<IndexingContext> indexingContexts ) throws IOException { return searchIteratorPaged( request, indexingContexts, true ); }
throws IOException List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); NexusIndexMultiReader multiReader = getMergedIndexReader( indexingContexts, ignoreContext ); TopScoreDocCollector hits = doSearchWithCeiling( request, indexSearcher, request.getQuery() );
protected FlatSearchResponse searchFlatPaged( FlatSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeSet<ArtifactInfo> result = new TreeSet<ArtifactInfo>( request.getArtifactInfoComparator() ); return new FlatSearchResponse( request.getQuery(), searchFlat( request, result, contexts, request.getQuery() ), result ); }
protected GroupedSearchResponse searchGrouped( GroupedSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeMap<String, ArtifactInfoGroup> result = new TreeMap<String, ArtifactInfoGroup>( request.getGroupKeyComparator() ); return new GroupedSearchResponse( request.getQuery(), searchGrouped( request, result, request.getGrouping(), contexts, request.getQuery() ), result ); }
throws IOException int topHitCount = getTopDocsCollectorHitNum( request, AbstractSearchRequest.UNDEFINED ); if ( getLogger().isDebugEnabled() ) getLogger().debug( "Executing unbounded search, and fitting topHitCounts to " + topHitCount + ", an OOMEx might follow. To avoid OOM use narrower queries or limit your expectancy with "
try final TopScoreDocCollector collector = doSearchWithCeiling( req, indexSearcher, query );
/** * 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 ); }
throws IOException List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); NexusIndexMultiReader multiReader = getMergedIndexReader( indexingContexts, ignoreContext ); TopScoreDocCollector hits = doSearchWithCeiling( request, indexSearcher, request.getQuery() );
protected FlatSearchResponse searchFlatPaged( FlatSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeSet<ArtifactInfo> result = new TreeSet<ArtifactInfo>( request.getArtifactInfoComparator() ); return new FlatSearchResponse( request.getQuery(), searchFlat( request, result, contexts, request.getQuery() ), result ); }
protected GroupedSearchResponse searchGrouped( GroupedSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeMap<String, ArtifactInfoGroup> result = new TreeMap<String, ArtifactInfoGroup>( request.getGroupKeyComparator() ); return new GroupedSearchResponse( request.getQuery(), searchGrouped( request, result, request.getGrouping(), contexts, request.getQuery() ), result ); }
throws IOException int topHitCount = getTopDocsCollectorHitNum( request, AbstractSearchRequest.UNDEFINED ); if ( getLogger().isDebugEnabled() ) getLogger().debug( "Executing unbounded search, and fitting topHitCounts to " + topHitCount + ", an OOMEx might follow. To avoid OOM use narrower queries or limit your expectancy with "
try final TopScoreDocCollector collector = doSearchWithCeiling( req, indexSearcher, query );
/** * 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 ); }
throws IOException List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); NexusIndexMultiReader multiReader = getMergedIndexReader( indexingContexts, ignoreContext ); TopScoreDocCollector hits = doSearchWithCeiling( request, indexSearcher, request.getQuery() );
protected FlatSearchResponse searchFlatPaged( FlatSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeSet<ArtifactInfo> result = new TreeSet<ArtifactInfo>( request.getArtifactInfoComparator() ); return new FlatSearchResponse( request.getQuery(), searchFlat( request, result, contexts, request.getQuery() ), result ); }
protected GroupedSearchResponse searchGrouped( GroupedSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeMap<String, ArtifactInfoGroup> result = new TreeMap<String, ArtifactInfoGroup>( request.getGroupKeyComparator() ); return new GroupedSearchResponse( request.getQuery(), searchGrouped( request, result, request.getGrouping(), contexts, request.getQuery() ), result ); }
public FlatSearchResponse searchFlatPaged( FlatSearchRequest request, Collection<IndexingContext> indexingContexts ) throws IOException { return searchFlatPaged( request, indexingContexts, false ); }
throws IOException int topHitCount = getTopDocsCollectorHitNum( request, AbstractSearchRequest.UNDEFINED ); if ( getLogger().isDebugEnabled() ) getLogger().debug( "Executing unbounded search, and fitting topHitCounts to " + topHitCount