Package com.yahoo.search.query.parser
Class ParserEnvironment
java.lang.Object
com.yahoo.search.query.parser.ParserEnvironment
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParserEnvironment
fromExecutionContext
(Execution.Context context) static ParserEnvironment
fromParserEnvironment
(ParserEnvironment environment) com.yahoo.language.Linguistics
com.yahoo.language.process.SpecialTokens
setIndexFacts
(IndexFacts indexFacts) setLinguistics
(com.yahoo.language.Linguistics linguistics) setSpecialTokens
(com.yahoo.language.process.SpecialTokens specialTokens)
-
Constructor Details
-
ParserEnvironment
public ParserEnvironment()
-
-
Method Details
-
getIndexFacts
-
setIndexFacts
-
getLinguistics
public com.yahoo.language.Linguistics getLinguistics() -
setLinguistics
-
getSpecialTokens
public com.yahoo.language.process.SpecialTokens getSpecialTokens() -
setSpecialTokens
-
fromExecutionContext
-
fromParserEnvironment
-