@Singleton @Named public class DefaultSearchEngine extends Object implements SearchEngine
Constructor and Description |
---|
DefaultSearchEngine() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.search.TopScoreDocCollector |
doSearchWithCeiling(AbstractSearchRequest request,
org.apache.lucene.search.IndexSearcher indexSearcher,
org.apache.lucene.search.Query query) |
FlatSearchResponse |
forceSearchFlatPaged(FlatSearchRequest request,
Collection<IndexingContext> indexingContexts)
Do the search in all contexts, no matter if the context is searchable or not
|
GroupedSearchResponse |
forceSearchGrouped(GroupedSearchRequest request,
Collection<IndexingContext> indexingContexts)
Do the search in all contexts, no matter if the context is searchable or not
|
IteratorSearchResponse |
forceSearchIteratorPaged(IteratorSearchRequest request,
Collection<IndexingContext> indexingContexts)
Do the search in all contexts, no matter if the context is searchable or not
|
protected org.slf4j.Logger |
getLogger() |
protected NexusIndexMultiReader |
getMergedIndexReader(Collection<IndexingContext> indexingContexts,
boolean ignoreContext)
Locks down participating contexts, and returns a "merged" reader of them.
|
protected List<IndexingContext> |
getParticipatingContexts(Collection<IndexingContext> indexingContexts,
boolean ignoreContext)
Returns the list of participating contexts.
|
protected int |
getTopDocsCollectorHitNum(AbstractSearchRequest request,
int ceiling) |
Set<ArtifactInfo> |
searchFlat(Comparator<ArtifactInfo> artifactInfoComparator,
Collection<IndexingContext> indexingContexts,
org.apache.lucene.search.Query query)
Deprecated.
|
Set<ArtifactInfo> |
searchFlat(Comparator<ArtifactInfo> artifactInfoComparator,
IndexingContext indexingContext,
org.apache.lucene.search.Query query)
Deprecated.
|
protected int |
searchFlat(FlatSearchRequest req,
Collection<ArtifactInfo> result,
List<IndexingContext> participatingContexts,
org.apache.lucene.search.Query query) |
FlatSearchResponse |
searchFlatPaged(FlatSearchRequest request,
Collection<IndexingContext> indexingContexts)
Do the search only on searchable contexts
|
protected FlatSearchResponse |
searchFlatPaged(FlatSearchRequest request,
Collection<IndexingContext> indexingContexts,
boolean ignoreContext) |
GroupedSearchResponse |
searchGrouped(GroupedSearchRequest request,
Collection<IndexingContext> indexingContexts)
Do the search only on searchable contexts
|
protected GroupedSearchResponse |
searchGrouped(GroupedSearchRequest request,
Collection<IndexingContext> indexingContexts,
boolean ignoreContext) |
protected int |
searchGrouped(GroupedSearchRequest req,
Map<String,ArtifactInfoGroup> result,
Grouping grouping,
List<IndexingContext> participatingContexts,
org.apache.lucene.search.Query query) |
IteratorSearchResponse |
searchIteratorPaged(IteratorSearchRequest request,
Collection<IndexingContext> indexingContexts)
Do the search only on searchable contexts
|
protected org.slf4j.Logger getLogger()
@Deprecated public Set<ArtifactInfo> searchFlat(Comparator<ArtifactInfo> artifactInfoComparator, IndexingContext indexingContext, org.apache.lucene.search.Query query) throws IOException
searchFlat
in interface SearchEngine
IOException
@Deprecated public Set<ArtifactInfo> searchFlat(Comparator<ArtifactInfo> artifactInfoComparator, Collection<IndexingContext> indexingContexts, org.apache.lucene.search.Query query) throws IOException
searchFlat
in interface SearchEngine
IOException
public FlatSearchResponse searchFlatPaged(FlatSearchRequest request, Collection<IndexingContext> indexingContexts) throws IOException
SearchEngine
searchFlatPaged
in interface SearchEngine
IOException
public FlatSearchResponse forceSearchFlatPaged(FlatSearchRequest request, Collection<IndexingContext> indexingContexts) throws IOException
SearchEngine
forceSearchFlatPaged
in interface SearchEngine
IOException
protected FlatSearchResponse searchFlatPaged(FlatSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext) throws IOException
IOException
public GroupedSearchResponse searchGrouped(GroupedSearchRequest request, Collection<IndexingContext> indexingContexts) throws IOException
SearchEngine
searchGrouped
in interface SearchEngine
IOException
public GroupedSearchResponse forceSearchGrouped(GroupedSearchRequest request, Collection<IndexingContext> indexingContexts) throws IOException
SearchEngine
forceSearchGrouped
in interface SearchEngine
IOException
protected GroupedSearchResponse searchGrouped(GroupedSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext) throws IOException
IOException
protected int searchFlat(FlatSearchRequest req, Collection<ArtifactInfo> result, List<IndexingContext> participatingContexts, org.apache.lucene.search.Query query) throws IOException
IOException
protected int searchGrouped(GroupedSearchRequest req, Map<String,ArtifactInfoGroup> result, Grouping grouping, List<IndexingContext> participatingContexts, org.apache.lucene.search.Query query) throws IOException
IOException
public IteratorSearchResponse searchIteratorPaged(IteratorSearchRequest request, Collection<IndexingContext> indexingContexts) throws IOException
SearchEngine
searchIteratorPaged
in interface SearchEngine
IOException
public IteratorSearchResponse forceSearchIteratorPaged(IteratorSearchRequest request, Collection<IndexingContext> indexingContexts) throws IOException
SearchEngine
forceSearchIteratorPaged
in interface SearchEngine
IOException
protected org.apache.lucene.search.TopScoreDocCollector doSearchWithCeiling(AbstractSearchRequest request, org.apache.lucene.search.IndexSearcher indexSearcher, org.apache.lucene.search.Query query) throws IOException
IOException
protected List<IndexingContext> getParticipatingContexts(Collection<IndexingContext> indexingContexts, boolean ignoreContext)
protected NexusIndexMultiReader getMergedIndexReader(Collection<IndexingContext> indexingContexts, boolean ignoreContext) throws IOException
indexingContexts
- ignoreContext
- IOException
protected int getTopDocsCollectorHitNum(AbstractSearchRequest request, int ceiling)
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.