Class AdvancedParser

java.lang.Object
com.yahoo.prelude.query.parser.AbstractParser
com.yahoo.prelude.query.parser.AdvancedParser
All Implemented Interfaces:
CustomParser, Parser

@Deprecated public class AdvancedParser extends AbstractParser
Deprecated.
YQL should be used for formal queries
Parser for queries of type 'advanced'.
Author:
Steinar Knutsen
  • Constructor Details

  • Method Details

    • parseItems

      protected Item parseItems()
      Deprecated.
      Specified by:
      parseItems in class AbstractParser
    • handleComposite

      protected Item handleComposite(boolean topLevel)
      Deprecated.
    • compositeItem

      protected Item compositeItem()
    • setSubmodeFromIndex

      protected void setSubmodeFromIndex(String indexName, IndexFacts.Session indexFacts)
      Sets the submodes used for url parsing. Override this to influence when such submodes are used.
    • indexableItem

      protected com.yahoo.collections.Pair<Item,Boolean> indexableItem(String indexPath)
      Returns an item and whether it had an explicit index ('indexname:' prefix).
      Parameters:
      indexPath - the index name prefix this is in the context of, only non-empty if this is inside a sameElement. The path includes the index name and the trailing dot.
      Returns:
      an item and whether it has an explicit index, or a Pair with the first element null if none
    • word

      protected Item word(String indexName, boolean quoted)
      Returns a WordItem if this is a non CJK query, a WordItem or SegmentItem if this is a CJK query, null if the current item is not a word
      Parameters:
      quoted - whether this token is inside quotes