Class SubstringItem

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

public class SubstringItem extends WordItem
A word that matches substrings of words
Author:
banino
  • Constructor Details

    • SubstringItem

      public SubstringItem(String substring)
    • SubstringItem

      public SubstringItem(String substring, 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