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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordFlags to set various sub-modes in query parsing -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParserEnvironmentfromExecutionContext(Execution.Context context) static ParserEnvironmentfromParserEnvironment(ParserEnvironment environment) com.yahoo.language.Linguisticscom.yahoo.language.process.SpecialTokensgetType()setIndexFacts(IndexFacts indexFacts) setLinguistics(com.yahoo.language.Linguistics linguistics) setSpecialTokens(com.yahoo.language.process.SpecialTokens specialTokens)
-
Constructor Details
-
ParserEnvironment
public ParserEnvironment()
-
-
Method Details
-
getParserSettings
-
setParserSettings
-
getIndexFacts
-
setIndexFacts
-
getLinguistics
public com.yahoo.language.Linguistics getLinguistics() -
setLinguistics
-
getSpecialTokens
public com.yahoo.language.process.SpecialTokens getSpecialTokens() -
setSpecialTokens
-
getType
-
setType
-
fromExecutionContext
-
fromParserEnvironment
-