Class FieldsQuery
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.SrndQuery
-
- org.apache.lucene.queryparser.surround.query.FieldsQuery
-
- All Implemented Interfaces:
java.lang.Cloneable
public class FieldsQuery extends SrndQuery
Forms an OR query of the provided query across multiple fields.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queryparser.surround.query.SrndQuery
theEmptyLcnQuery
-
-
Constructor Summary
Constructors Constructor Description FieldsQuery(SrndQuery q, java.lang.String fieldName, char fieldOp)
FieldsQuery(SrndQuery q, java.util.List<java.lang.String> fieldNames, char fieldOp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getFieldNames()
char
getFieldOperator()
boolean
isFieldsSubQueryAcceptable()
Query
makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)
Query
makeLuceneQueryNoBoost(BasicQueryFactory qf)
java.lang.String
toString()
This method is used bySrndQuery.hashCode()
andSrndQuery.equals(Object)
, see LUCENE-2945.-
Methods inherited from class org.apache.lucene.queryparser.surround.query.SrndQuery
clone, equals, getWeight, getWeightOperator, getWeightString, hashCode, isWeighted, makeLuceneQueryField, setWeight
-
-
-
-
Method Detail
-
isFieldsSubQueryAcceptable
public boolean isFieldsSubQueryAcceptable()
- Overrides:
isFieldsSubQueryAcceptable
in classSrndQuery
-
makeLuceneQueryNoBoost
public Query makeLuceneQueryNoBoost(BasicQueryFactory qf)
-
makeLuceneQueryFieldNoBoost
public Query makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)
- Specified by:
makeLuceneQueryFieldNoBoost
in classSrndQuery
-
getFieldNames
public java.util.List<java.lang.String> getFieldNames()
-
getFieldOperator
public char getFieldOperator()
-
toString
public java.lang.String toString()
Description copied from class:SrndQuery
This method is used bySrndQuery.hashCode()
andSrndQuery.equals(Object)
, see LUCENE-2945.
-
-