Class PrefixItem

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

public class PrefixItem extends WordItem
A word which matches beginnings of words instead of complete words
Author:
bratseth
  • Constructor Details

    • PrefixItem

      public PrefixItem(String prefix)
    • PrefixItem

      public PrefixItem(String prefix, boolean isFromQuery)
    • PrefixItem

      public PrefixItem(String prefix, String indexName)
  • 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