Class ONearItem

All Implemented Interfaces:
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 Details

    • 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 Details

    • getItemType

      public Item.ItemType getItemType()
      Description copied from class: Item
      Return the enumerated type of this item.
      Overrides:
      getItemType in class NearItem
    • getName

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