Class NGramPhraseQuery

    • Constructor Detail

      • NGramPhraseQuery

        public NGramPhraseQuery​(int n)
        Constructor that takes gram size.
        Parameters:
        n -
    • Method Detail

      • rewrite

        public Query rewrite​(IndexReader reader)
                      throws IOException
        Description copied from class: Query
        Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
        Overrides:
        rewrite in class PhraseQuery
        Throws:
        IOException
      • equals

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

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