Class SrndQuery
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.SrndQuery
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ComposedQuery,FieldsQuery,SimpleTerm
public abstract class SrndQuery extends Object implements Cloneable
Lowest level base class for surround queries
-
-
Constructor Summary
Constructors Constructor Description SrndQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SrndQueryclone()booleanequals(Object obj)For subclasses ofSrndQuerywithin the packageorg.apache.lucene.queryparser.surround.queryit is not necessary to override this method,floatgetWeight()StringgetWeightOperator()StringgetWeightString()inthashCode()For subclasses ofSrndQuerywithin the packageorg.apache.lucene.queryparser.surround.queryit is not necessary to override this method,booleanisFieldsSubQueryAcceptable()booleanisWeighted()QuerymakeLuceneQueryField(String fieldName, BasicQueryFactory qf)abstract QuerymakeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)voidsetWeight(float w)abstract StringtoString()This method is used byhashCode()andequals(Object), see LUCENE-2945.protected voidweightToString(StringBuilder r)
-
-
-
Method Detail
-
setWeight
public void setWeight(float w)
-
isWeighted
public boolean isWeighted()
-
getWeight
public float getWeight()
-
getWeightString
public String getWeightString()
-
getWeightOperator
public String getWeightOperator()
-
weightToString
protected void weightToString(StringBuilder r)
-
makeLuceneQueryField
public Query makeLuceneQueryField(String fieldName, BasicQueryFactory qf)
-
makeLuceneQueryFieldNoBoost
public abstract Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)
-
toString
public abstract String toString()
This method is used byhashCode()andequals(Object), see LUCENE-2945.
-
isFieldsSubQueryAcceptable
public boolean isFieldsSubQueryAcceptable()
-
hashCode
public int hashCode()
For subclasses ofSrndQuerywithin the packageorg.apache.lucene.queryparser.surround.queryit is not necessary to override this method,- Overrides:
hashCodein classObject- See Also:
toString()
-
equals
public boolean equals(Object obj)
For subclasses ofSrndQuerywithin the packageorg.apache.lucene.queryparser.surround.queryit is not necessary to override this method,- Overrides:
equalsin classObject- See Also:
toString()
-
-