Package org.apache.maven.index
Class AbstractSearchRequest
java.lang.Object
org.apache.maven.index.AbstractSearchRequest
- Direct Known Subclasses:
AbstractSearchPageableRequest,FlatSearchRequest,GroupedSearchRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant for denoting undefined value for result count. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSearchRequest(org.apache.lucene.search.Query query) AbstractSearchRequest(org.apache.lucene.search.Query query, List<IndexingContext> contexts) -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Returns the "count" of wanted results.org.apache.lucene.search.QuerygetQuery()intDeprecated.always returns -1 (no hit limit), since 4.1.0 there is no notion of hit limitbooleanDeprecated.always returns false, since 4.1.0 there is no notion of hit limitbooleanvoidsetArtifactInfoFilter(ArtifactInfoFilter artifactInfoFilter) voidsetArtifactInfoPostprocessor(ArtifactInfoPostprocessor artifactInfoPostprocessor) voidsetContexts(List<IndexingContext> contexts) voidsetCount(int count) Sets the "count" of wanted results.voidsetLuceneExplain(boolean luceneExplain) voidsetMatchHighlightRequests(List<MatchHighlightRequest> matchHighlightRequests) voidsetQuery(org.apache.lucene.search.Query query) voidsetResultHitLimit(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. SeeUNDEFINEDandcount.- Returns:
-
setCount
public void setCount(int count) Sets the "count" of wanted results. SeeUNDEFINEDandcount.- 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)
-