Class ParserEnvironment

java.lang.Object
com.yahoo.search.query.parser.ParserEnvironment

public final class ParserEnvironment extends Object
This class encapsulates the environment of a Parser. In case you are creating a parser from within a Searcher, you can use the fromExecutionContext(Execution.Context) factory for convenience.
Author:
Simon Thoresen Hult
  • Constructor Details

    • ParserEnvironment

      public ParserEnvironment()
  • Method Details

    • getIndexFacts

      public IndexFacts getIndexFacts()
    • setIndexFacts

      public ParserEnvironment setIndexFacts(IndexFacts indexFacts)
    • getLinguistics

      public com.yahoo.language.Linguistics getLinguistics()
    • setLinguistics

      public ParserEnvironment setLinguistics(com.yahoo.language.Linguistics linguistics)
    • getSpecialTokens

      public com.yahoo.language.process.SpecialTokens getSpecialTokens()
    • setSpecialTokens

      public ParserEnvironment setSpecialTokens(com.yahoo.language.process.SpecialTokens specialTokens)
    • fromExecutionContext

      public static ParserEnvironment fromExecutionContext(Execution.Context context)
    • fromParserEnvironment

      public static ParserEnvironment fromParserEnvironment(ParserEnvironment environment)