Class PrefixQuery

    • Constructor Detail

      • PrefixQuery

        public PrefixQuery​(Term prefix)
        Constructs a query for terms starting with prefix.
    • Method Detail

      • getPrefix

        public Term getPrefix()
        Returns the prefix of this 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 obj)
        Overrides:
        equals in class MultiTermQuery