Package org.apache.maven.index
Class AbstractSearchRequest
- java.lang.Object
-
- org.apache.maven.index.AbstractSearchRequest
-
- Direct Known Subclasses:
AbstractSearchPageableRequest,FlatSearchRequest,GroupedSearchRequest
public class AbstractSearchRequest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intUNDEFINEDConstant for denoting undefined value for result count.
-
Constructor Summary
Constructors Constructor Description AbstractSearchRequest(org.apache.lucene.search.Query query)AbstractSearchRequest(org.apache.lucene.search.Query query, java.util.List<IndexingContext> contexts)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ArtifactInfoFiltergetArtifactInfoFilter()ArtifactInfoPostprocessorgetArtifactInfoPostprocessor()java.util.List<IndexingContext>getContexts()intgetCount()Returns the "count" of wanted results.java.util.List<MatchHighlightRequest>getMatchHighlightRequests()org.apache.lucene.search.QuerygetQuery()intgetResultHitLimit()Deprecated.always returns -1 (no hit limit), since 4.1.0 there is no notion of hit limitbooleanisHitLimited()Deprecated.always returns false, since 4.1.0 there is no notion of hit limitbooleanisLuceneExplain()voidsetArtifactInfoFilter(ArtifactInfoFilter artifactInfoFilter)voidsetArtifactInfoPostprocessor(ArtifactInfoPostprocessor artifactInfoPostprocessor)voidsetContexts(java.util.List<IndexingContext> contexts)voidsetCount(int count)Sets the "count" of wanted results.voidsetLuceneExplain(boolean luceneExplain)voidsetMatchHighlightRequests(java.util.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 Detail
-
UNDEFINED
public static final int UNDEFINED
Constant for denoting undefined value for result count.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractSearchRequest
public AbstractSearchRequest(org.apache.lucene.search.Query query)
-
AbstractSearchRequest
public AbstractSearchRequest(org.apache.lucene.search.Query query, java.util.List<IndexingContext> contexts)
-
-
Method Detail
-
getQuery
public org.apache.lucene.search.Query getQuery()
-
setQuery
public void setQuery(org.apache.lucene.search.Query query)
-
getContexts
public java.util.List<IndexingContext> getContexts()
-
setContexts
public void setContexts(java.util.List<IndexingContext> contexts)
-
getCount
public int getCount()
- Returns:
-
setCount
public void setCount(int count)
- Parameters:
count-
-
isHitLimited
public boolean isHitLimited()
Deprecated.always returns false, since 4.1.0 there is no notion of hit limitReturns true if hits are limited.- Returns:
-
getResultHitLimit
public int 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
public void setResultHitLimit(int resultHitLimit)
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
public ArtifactInfoFilter getArtifactInfoFilter()
-
setArtifactInfoFilter
public void setArtifactInfoFilter(ArtifactInfoFilter artifactInfoFilter)
-
getArtifactInfoPostprocessor
public ArtifactInfoPostprocessor getArtifactInfoPostprocessor()
-
setArtifactInfoPostprocessor
public void setArtifactInfoPostprocessor(ArtifactInfoPostprocessor artifactInfoPostprocessor)
-
getMatchHighlightRequests
public java.util.List<MatchHighlightRequest> getMatchHighlightRequests()
-
setMatchHighlightRequests
public void setMatchHighlightRequests(java.util.List<MatchHighlightRequest> matchHighlightRequests)
-
isLuceneExplain
public boolean isLuceneExplain()
-
setLuceneExplain
public void setLuceneExplain(boolean luceneExplain)
-
-