@NotThreadSafe public class LuceneQuery extends Object
Constructor and Description |
---|
LuceneQuery(String pushDownIndexName) |
Modifier and Type | Method and Description |
---|---|
void |
addConstraintForPostprocessing(Constraint constraint)
Record one of the ANDed constraints could not be converted into a Lucene query and thus will need to be handled after the
Lucene processing is done.
|
void |
addQuery(org.apache.lucene.search.Query query)
Add a Lucene query for one of the ANDed constraints.
|
Constraint |
getPostProcessingConstraints()
Get the ANDed-constraints that could not be pushed down to Lucene.
|
String |
getPushDownIndexName()
Get the index against which the
push-down query should be executed. |
org.apache.lucene.search.Query |
getPushDownQuery()
Get the Lucene query that should be executed.
|
boolean |
matchesNone()
Return whether the
pushdown query will always return no results. |
String |
toString() |
public LuceneQuery(String pushDownIndexName)
public void addQuery(org.apache.lucene.search.Query query)
query
- the Lucene query; never nullpublic void addConstraintForPostprocessing(Constraint constraint)
constraint
- public boolean matchesNone()
pushdown query
will always return no results.getPushDownQuery()
to run.public org.apache.lucene.search.Query getPushDownQuery()
public String getPushDownIndexName()
push-down query
should be executed.public Constraint getPostProcessingConstraints()
Lucene queries
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.