Class 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 Detail

      • theEmptyLcnQuery

        public static final Query theEmptyLcnQuery
        An empty Lucene query
    • Constructor Detail

      • SrndQuery

        public SrndQuery()
    • 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 by hashCode() and equals(Object), see LUCENE-2945.
        Overrides:
        toString in class java.lang.Object
      • isFieldsSubQueryAcceptable

        public boolean isFieldsSubQueryAcceptable()