|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.Query org.jboss.dna.search.lucene.query.CompareQuery<Integer> org.jboss.dna.search.lucene.query.CompareLengthQuery
public class CompareLengthQuery
A Lucene Query
implementation that is used to apply a Length
constraint against a string field. This query
implementation works by using the weight
and
scorer
of the wrapped query to score (and return) only those documents
with string fields that satisfy the constraint.
Method Summary | |
---|---|
Object |
clone()
|
static CompareLengthQuery |
createQueryForNodesWithFieldEqualTo(Integer constraintValue,
String fieldName,
ValueFactories factories)
Construct a Query implementation that scores documents with a field length that is equal to the supplied constraint
value. |
static CompareLengthQuery |
createQueryForNodesWithFieldGreaterThan(Integer constraintValue,
String fieldName,
ValueFactories factories)
Construct a Query implementation that scores documents with a field length that is greater than the supplied
constraint value. |
static CompareLengthQuery |
createQueryForNodesWithFieldGreaterThanOrEqualTo(Integer constraintValue,
String fieldName,
ValueFactories factories)
Construct a Query implementation that scores documents with a field length that is greater than or equal to the
supplied constraint value. |
static CompareLengthQuery |
createQueryForNodesWithFieldLessThan(Integer constraintValue,
String fieldName,
ValueFactories factories)
Construct a Query implementation that scores documents with a field length that is less than the supplied
constraint value. |
static CompareLengthQuery |
createQueryForNodesWithFieldLessThanOrEqualTo(Integer constraintValue,
String fieldName,
ValueFactories factories)
Construct a Query implementation that scores documents with a field length that is less than or equal to the
supplied constraint value. |
static CompareLengthQuery |
createQueryForNodesWithFieldNotEqualTo(Integer constraintValue,
String fieldName,
ValueFactories factories)
Construct a Query implementation that scores documents with a field length that is not equal to the supplied
constraint value. |
Methods inherited from class org.jboss.dna.search.lucene.query.CompareQuery |
---|
createWeight, toString |
Methods inherited from class org.apache.lucene.search.Query |
---|
combine, equals, extractTerms, getBoost, getSimilarity, hashCode, mergeBooleanQueries, rewrite, setBoost, toString, weight |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static CompareLengthQuery createQueryForNodesWithFieldEqualTo(Integer constraintValue, String fieldName, ValueFactories factories)
Query
implementation that scores documents with a field length that is equal to the supplied constraint
value.
constraintValue
- the constraint value; may not be nullfieldName
- the name of the document field containing the value; may not be nullfactories
- the value factories that can be used during the scoring; may not be null
public static CompareLengthQuery createQueryForNodesWithFieldNotEqualTo(Integer constraintValue, String fieldName, ValueFactories factories)
Query
implementation that scores documents with a field length that is not equal to the supplied
constraint value.
constraintValue
- the constraint value; may not be nullfieldName
- the name of the document field containing the value; may not be nullfactories
- the value factories that can be used during the scoring; may not be null
public static CompareLengthQuery createQueryForNodesWithFieldGreaterThan(Integer constraintValue, String fieldName, ValueFactories factories)
Query
implementation that scores documents with a field length that is greater than the supplied
constraint value.
constraintValue
- the constraint value; may not be nullfieldName
- the name of the document field containing the value; may not be nullfactories
- the value factories that can be used during the scoring; may not be null
public static CompareLengthQuery createQueryForNodesWithFieldGreaterThanOrEqualTo(Integer constraintValue, String fieldName, ValueFactories factories)
Query
implementation that scores documents with a field length that is greater than or equal to the
supplied constraint value.
constraintValue
- the constraint value; may not be nullfieldName
- the name of the document field containing the value; may not be nullfactories
- the value factories that can be used during the scoring; may not be null
public static CompareLengthQuery createQueryForNodesWithFieldLessThan(Integer constraintValue, String fieldName, ValueFactories factories)
Query
implementation that scores documents with a field length that is less than the supplied
constraint value.
constraintValue
- the constraint value; may not be nullfieldName
- the name of the document field containing the value; may not be nullfactories
- the value factories that can be used during the scoring; may not be null
public static CompareLengthQuery createQueryForNodesWithFieldLessThanOrEqualTo(Integer constraintValue, String fieldName, ValueFactories factories)
Query
implementation that scores documents with a field length that is less than or equal to the
supplied constraint value.
constraintValue
- the constraint value; may not be nullfieldName
- the name of the document field containing the value; may not be nullfactories
- the value factories that can be used during the scoring; may not be null
public Object clone()
clone
in class org.apache.lucene.search.Query
Query.clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |