Package org.apache.maven.index
Class AbstractSearchRequest
java.lang.Object
org.apache.maven.index.AbstractSearchRequest
- Direct Known Subclasses:
AbstractSearchPageableRequest
,FlatSearchRequest
,GroupedSearchRequest
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant for denoting undefined value for result count. -
Constructor Summary
ConstructorDescriptionAbstractSearchRequest
(org.apache.lucene.search.Query query) AbstractSearchRequest
(org.apache.lucene.search.Query query, List<IndexingContext> contexts) -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Returns the "count" of wanted results.org.apache.lucene.search.Query
getQuery()
int
Deprecated.always returns -1 (no hit limit), since 4.1.0 there is no notion of hit limitboolean
Deprecated.always returns false, since 4.1.0 there is no notion of hit limitboolean
void
setArtifactInfoFilter
(ArtifactInfoFilter artifactInfoFilter) void
setArtifactInfoPostprocessor
(ArtifactInfoPostprocessor artifactInfoPostprocessor) void
setContexts
(List<IndexingContext> contexts) void
setCount
(int count) Sets the "count" of wanted results.void
setLuceneExplain
(boolean luceneExplain) void
setMatchHighlightRequests
(List<MatchHighlightRequest> matchHighlightRequests) void
setQuery
(org.apache.lucene.search.Query query) void
setResultHitLimit
(int resultHitLimit) Deprecated.does nothing, since 4.1.0 there is no notion of hit limit
-
Field Details
-
UNDEFINED
public static final int UNDEFINEDConstant for denoting undefined value for result count.- See Also:
-
-
Constructor Details
-
AbstractSearchRequest
public AbstractSearchRequest(org.apache.lucene.search.Query query) -
AbstractSearchRequest
-
-
Method Details
-
getQuery
public org.apache.lucene.search.Query getQuery() -
setQuery
public void setQuery(org.apache.lucene.search.Query query) -
getContexts
-
setContexts
-
getCount
public int getCount()Returns the "count" of wanted results. SeeUNDEFINED
andcount
.- Returns:
-
setCount
public void setCount(int count) Sets the "count" of wanted results. SeeUNDEFINED
andcount
.- Parameters:
count
-
-
isHitLimited
Deprecated.always returns false, since 4.1.0 there is no notion of hit limitReturns true if hits are limited.- Returns:
-
getResultHitLimit
Deprecated.always returns -1 (no hit limit), since 4.1.0 there is no notion of hit limitGets the hit limit. Since 4.1.0 does nothing, always returns -1 (was "no hit limit").- Returns:
-
setResultHitLimit
Deprecated.does nothing, since 4.1.0 there is no notion of hit limitSets the hit limit. Since 4.1.0 does nothing.- Parameters:
resultHitLimit
-
-
getArtifactInfoFilter
-
setArtifactInfoFilter
-
getArtifactInfoPostprocessor
-
setArtifactInfoPostprocessor
-
getMatchHighlightRequests
-
setMatchHighlightRequests
-
isLuceneExplain
public boolean isLuceneExplain() -
setLuceneExplain
public void setLuceneExplain(boolean luceneExplain)
-