public class SemanticQueryAnalyzerProcessor extends java.lang.Object implements QueryProcessor
QueryProcessor.NoHooks
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
annotateUnusedTokensWith |
protected com.exalead.indexing.analysis.semantic.SemanticProcessorFactoryCtx |
context |
protected static org.apache.log4j.Logger |
log |
protected MOTPipe |
pipe |
protected java.lang.String |
prefix |
protected java.util.HashSet<java.lang.String> |
queryNames |
protected TokenizationConfig |
tokenization |
protected SemanticQueryAnalyzerVisitor |
visitor |
Constructor and Description |
---|
SemanticQueryAnalyzerProcessor(TokenizationConfig tok) |
Modifier and Type | Method and Description |
---|---|
void |
onDeinit(boolean allInstances)
Called when this instance of the processor is deinitialized.
|
void |
onInit(QueryProcessorContext processorContext)
Called when this instance of processor is initialized for the first time.
|
void |
process(QueryContext context)
Called to process a query with this processor.
|
protected com.exalead.indexing.analysis.semantic.SemanticProcessorFactoryCtx context
protected SemanticQueryAnalyzerVisitor visitor
protected TokenizationConfig tokenization
protected java.util.HashSet<java.lang.String> queryNames
protected final java.lang.String annotateUnusedTokensWith
protected final java.lang.String prefix
protected MOTPipe pipe
protected static org.apache.log4j.Logger log
public SemanticQueryAnalyzerProcessor(TokenizationConfig tok)
public void onDeinit(boolean allInstances) throws java.lang.Exception
QueryProcessor
onDeinit
in interface QueryProcessor
allInstances
- Hint indicating whether all instances of the processor
are going to be deinitialized, or only this one.java.lang.Exception
public void onInit(QueryProcessorContext processorContext) throws java.lang.Exception
QueryProcessor
onInit
in interface QueryProcessor
java.lang.Exception
public void process(QueryContext context) throws QueryProcessingException
QueryProcessor
process
in interface QueryProcessor
QueryProcessingException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.