Documentation of 'org.apache.lucene.search.TermQuery' Java class
TermQuery
org.apache.lucene.search

Class TermQuery

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class TermQuery
    extends Query
    A Query that matches documents containing a term. This may be combined with other terms with a BooleanQuery.
    See Also:
    Serialized Form
    • Constructor Detail

      • TermQuery

        public TermQuery(Term t)
        Constructs a query for the term t.
    • Method Detail

      • getTerm

        public Term getTerm()
        Returns the term of this query.
      • extractTerms

        public void extractTerms(java.util.Set terms)
        Description copied from class: Query
        Expert: adds all terms occuring in this query to the terms set. Only works if this query is in its rewritten form.
        Overrides:
        extractTerms in class Query
      • toString

        public java.lang.String toString(java.lang.String field)
        Prints a user-readable version of this query.
        Specified by:
        toString in class Query
      • equals

        public boolean equals(java.lang.Object o)
        Returns true iff o is equal to this.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Returns a hash code value for this object.
        Overrides:
        hashCode in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.