Class ProgrammaticParser

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

public final class ProgrammaticParser extends Object implements CustomParser
Author:
Simon Thoresen Hult
  • Constructor Details

    • ProgrammaticParser

      public ProgrammaticParser()
  • Method Details

    • parse

      public QueryTree parse(Parsable query)
      Description copied from interface: Parser
      Parser the given Parsable, and returns a corresponding QueryTree. If parsing fails without an exception, the contained root will be an instance of NullItem.
      Specified by:
      parse in interface Parser
      Parameters:
      query - the Parsable to parse
      Returns:
      the parsed QueryTree, never null
    • parse

      public Item parse(String queryToParse, String filterToParse, com.yahoo.language.Language parsingLanguage, IndexFacts.Session indexFacts, String defaultIndexName)
      Specified by:
      parse in interface CustomParser