public class AbstractSearchRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ArtifactInfoFilter |
artifactInfoFilter
The filter to be used while executing the search request.
|
private ArtifactInfoPostprocessor |
artifactInfoPostprocessor
The postprocessor to apply to hits while returning the,
|
private java.util.List<IndexingContext> |
contexts |
private int |
count
The maximum count of results expected to have delivered, actually count of items (AIs).
|
private boolean |
luceneExplain
Should Lucene Explanations be added to resulting ArtifactInfo's attributes (keyed as
org.apache.lucene.search.Explanation.class.getName())? Warning: calculating these are costly operation, and
should not be used in production systems (maybe on some "debug" like UI or so).
|
private java.util.List<MatchHighlightRequest> |
matchHighlightRequests
The highlighting requests, if any.
|
private org.apache.lucene.search.Query |
query |
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,
java.util.List<IndexingContext> contexts) |
Modifier and Type | Method and Description |
---|---|
ArtifactInfoFilter |
getArtifactInfoFilter() |
ArtifactInfoPostprocessor |
getArtifactInfoPostprocessor() |
java.util.List<IndexingContext> |
getContexts() |
int |
getCount()
Returns the "count" of wanted results.
|
java.util.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(java.util.List<IndexingContext> contexts) |
void |
setCount(int count)
Sets the "count" of wanted results.
|
void |
setLuceneExplain(boolean luceneExplain) |
void |
setMatchHighlightRequests(java.util.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
private org.apache.lucene.search.Query query
private java.util.List<IndexingContext> contexts
private int count
UNDEFINED
, search will stop upon processing this count of AIs (that correspond to Lucene Document).private ArtifactInfoFilter artifactInfoFilter
private ArtifactInfoPostprocessor artifactInfoPostprocessor
private java.util.List<MatchHighlightRequest> matchHighlightRequests
private boolean luceneExplain
public AbstractSearchRequest(org.apache.lucene.search.Query query)
public AbstractSearchRequest(org.apache.lucene.search.Query query, java.util.List<IndexingContext> contexts)
public org.apache.lucene.search.Query getQuery()
public void setQuery(org.apache.lucene.search.Query query)
public java.util.List<IndexingContext> getContexts()
public void setContexts(java.util.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 java.util.List<MatchHighlightRequest> getMatchHighlightRequests()
public void setMatchHighlightRequests(java.util.List<MatchHighlightRequest> matchHighlightRequests)
public boolean isLuceneExplain()
public void setLuceneExplain(boolean luceneExplain)