Class SrndQuery
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.SrndQuery
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
ComposedQuery
,FieldsQuery
,SimpleTerm
public abstract class SrndQuery extends java.lang.Object implements java.lang.Cloneable
Lowest level base class for surround queries
-
-
Field Summary
Fields Modifier and Type Field Description static Query
theEmptyLcnQuery
An empty Lucene query
-
Constructor Summary
Constructors Constructor Description SrndQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SrndQuery
clone()
boolean
equals(java.lang.Object obj)
For subclasses ofSrndQuery
within the packageorg.apache.lucene.queryparser.surround.query
it is not necessary to override this method,float
getWeight()
java.lang.String
getWeightOperator()
java.lang.String
getWeightString()
int
hashCode()
For subclasses ofSrndQuery
within the packageorg.apache.lucene.queryparser.surround.query
it is not necessary to override this method,boolean
isFieldsSubQueryAcceptable()
boolean
isWeighted()
Query
makeLuceneQueryField(java.lang.String fieldName, BasicQueryFactory qf)
abstract Query
makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)
void
setWeight(float w)
abstract java.lang.String
toString()
This method is used byhashCode()
andequals(Object)
, see LUCENE-2945.
-
-
-
Field Detail
-
theEmptyLcnQuery
public static final Query theEmptyLcnQuery
An empty Lucene query
-
-
Method Detail
-
setWeight
public void setWeight(float w)
-
isWeighted
public boolean isWeighted()
-
getWeight
public float getWeight()
-
getWeightString
public java.lang.String getWeightString()
-
getWeightOperator
public java.lang.String getWeightOperator()
-
makeLuceneQueryField
public Query makeLuceneQueryField(java.lang.String fieldName, BasicQueryFactory qf)
-
makeLuceneQueryFieldNoBoost
public abstract Query makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)
-
toString
public abstract java.lang.String toString()
This method is used byhashCode()
andequals(Object)
, see LUCENE-2945.- Overrides:
toString
in classjava.lang.Object
-
isFieldsSubQueryAcceptable
public boolean isFieldsSubQueryAcceptable()
-
clone
public SrndQuery clone()
-
hashCode
public int hashCode()
For subclasses ofSrndQuery
within the packageorg.apache.lucene.queryparser.surround.query
it is not necessary to override this method,- Overrides:
hashCode
in classjava.lang.Object
- See Also:
toString()
-
equals
public boolean equals(java.lang.Object obj)
For subclasses ofSrndQuery
within the packageorg.apache.lucene.queryparser.surround.query
it is not necessary to override this method,- Overrides:
equals
in classjava.lang.Object
- See Also:
toString()
-
-