Class FuzzyQueryNode

    • Constructor Detail

      • FuzzyQueryNode

        public FuzzyQueryNode​(java.lang.CharSequence field,
                              java.lang.CharSequence term,
                              float minSimilarity,
                              int begin,
                              int end)
        Parameters:
        field - - Field name
        term - - Value
        minSimilarity - - similarity value
        begin - - position in the query string
        end - - position in the query string
    • Method Detail

      • setPrefixLength

        public void setPrefixLength​(int prefixLength)
      • getPrefixLength

        public int getPrefixLength()
      • toString

        public java.lang.String toString()
        Description copied from class: QueryNodeImpl
        Every implementation of this class should return pseudo xml like this: For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>
        Specified by:
        toString in interface QueryNode
        Overrides:
        toString in class FieldQueryNode
        See Also:
        QueryNode.toString()
      • setSimilarity

        public void setSimilarity​(float similarity)
      • cloneTree

        public FuzzyQueryNode cloneTree()
                                 throws java.lang.CloneNotSupportedException
        Description copied from interface: QueryNode
        Recursive clone the QueryNode tree The tags are not copied to the new tree when you call the cloneTree() method
        Specified by:
        cloneTree in interface QueryNode
        Overrides:
        cloneTree in class FieldQueryNode
        Returns:
        the cloned tree
        Throws:
        java.lang.CloneNotSupportedException
      • getSimilarity

        public float getSimilarity()
        Returns:
        the similarity