Class SuffixItem

All Implemented Interfaces:
BlockItem, HasIndexItem, IndexedItem, TaggableItem, Cloneable

public class SuffixItem extends WordItem
A word that matches a suffix of words instead of a complete word.
Author:
Steinar Knutsen
  • Constructor Details

    • SuffixItem

      public SuffixItem(String suffix)
    • SuffixItem

      public SuffixItem(String suffix, boolean isFromQuery)
  • Method Details

    • getItemType

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

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

      public String stringValue()
      Description copied from class: WordItem
      Returns this word as it should be used in executing the query. This is usually (but not always) a normalized and stemmed form
      Specified by:
      stringValue in interface BlockItem
      Overrides:
      stringValue in class WordItem