public abstract class AnalysisRequestHandlerBase extends RequestHandlerBase
Modifier and Type | Class and Description |
---|---|
protected static class |
AnalysisRequestHandlerBase.AnalysisContext
Serves as the context of an analysis process.
|
protected static class |
AnalysisRequestHandlerBase.ListBasedTokenStream
TokenStream that iterates over a list of pre-existing Tokens
|
static interface |
AnalysisRequestHandlerBase.TokenTrackingAttribute
This is an
Attribute used to track the positions of tokens
in the analysis chain. |
static class |
AnalysisRequestHandlerBase.TokenTrackingAttributeImpl
Implementation of
AnalysisRequestHandlerBase.TokenTrackingAttribute . |
SolrInfoMBean.Category
Modifier and Type | Field and Description |
---|---|
static Set<BytesRef> |
EMPTY_BYTES_SET |
appends, defaults, httpCaching, initArgs, invariants
Constructor and Description |
---|
AnalysisRequestHandlerBase() |
Modifier and Type | Method and Description |
---|---|
protected NamedList<? extends Object> |
analyzeValue(String value,
AnalysisRequestHandlerBase.AnalysisContext context)
Analyzes the given value using the given Analyzer.
|
protected abstract NamedList |
doAnalysis(SolrQueryRequest req)
Performs the analysis based on the given solr request and returns the analysis result as a named list.
|
protected Set<BytesRef> |
getQueryTokenSet(String query,
Analyzer analyzer)
Analyzes the given text using the given analyzer and returns the produced tokens.
|
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
getCategory, getDescription, getDocs, getInitArgs, getName, getSource, getStatistics, getVersion, handleRequest, init
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody
in class RequestHandlerBase
Exception
protected abstract NamedList doAnalysis(SolrQueryRequest req) throws Exception
req
- The solr request.Exception
- When analysis fails.protected NamedList<? extends Object> analyzeValue(String value, AnalysisRequestHandlerBase.AnalysisContext context)
value
- Value to analyzecontext
- The analysis context
.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.