public class AbstractSearchRequest extends Object
Modifier and Type | Field and Description |
---|---|
static int |
UNDEFINED
Constant for denoting undefined value for result count.
|
Constructor and Description |
---|
AbstractSearchRequest(org.apache.lucene.search.Query query) |
AbstractSearchRequest(org.apache.lucene.search.Query query,
List<IndexingContext> contexts) |
Modifier and Type | Method and Description |
---|---|
ArtifactInfoFilter |
getArtifactInfoFilter() |
ArtifactInfoPostprocessor |
getArtifactInfoPostprocessor() |
List<IndexingContext> |
getContexts() |
int |
getCount()
Returns the "count" of wanted results.
|
List<MatchHighlightRequest> |
getMatchHighlightRequests() |
org.apache.lucene.search.Query |
getQuery() |
int |
getResultHitLimit()
Deprecated.
always returns -1 (no hit limit), since 4.1.0 there is no notion of hit limit
|
boolean |
isHitLimited()
Deprecated.
always returns false, since 4.1.0 there is no notion of hit limit
|
boolean |
isLuceneExplain() |
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
|
public static final int UNDEFINED
public AbstractSearchRequest(org.apache.lucene.search.Query query)
public AbstractSearchRequest(org.apache.lucene.search.Query query, List<IndexingContext> contexts)
public org.apache.lucene.search.Query getQuery()
public void setQuery(org.apache.lucene.search.Query query)
public List<IndexingContext> getContexts()
public void setContexts(List<IndexingContext> contexts)
public int getCount()
public void setCount(int count)
count
- public boolean isHitLimited()
http://jira.codehaus.org/browse/MINDEXER-14
public int getResultHitLimit()
http://jira.codehaus.org/browse/MINDEXER-14
public void setResultHitLimit(int resultHitLimit)
resultHitLimit
- http://jira.codehaus.org/browse/MINDEXER-14
public ArtifactInfoFilter getArtifactInfoFilter()
public void setArtifactInfoFilter(ArtifactInfoFilter artifactInfoFilter)
public ArtifactInfoPostprocessor getArtifactInfoPostprocessor()
public void setArtifactInfoPostprocessor(ArtifactInfoPostprocessor artifactInfoPostprocessor)
public List<MatchHighlightRequest> getMatchHighlightRequests()
public void setMatchHighlightRequests(List<MatchHighlightRequest> matchHighlightRequests)
public boolean isLuceneExplain()
public void setLuceneExplain(boolean luceneExplain)
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.