Class ONearItem

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ONearItem
    extends NearItem
    Ordered NearItem.

    Matches as a near operator, but also demands that the operands have the same order in the document as in the query.

    Author:
    bratseth
    • Constructor Detail

      • ONearItem

        public ONearItem()
        Creates a ordered NEAR item with limit 2
      • ONearItem

        public ONearItem​(int distance)
        Creates a ordered near item which matches if there are at most distance separation between the words, in the right direction.
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from class: Item
        Returns the name of this item
        Overrides:
        getName in class NearItem