|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.handler.RequestHandlerBase
org.apache.solr.handler.AnalysisRequestHandlerBase
public abstract class AnalysisRequestHandlerBase
A base class for all analysis request handlers.
Nested Class Summary | |
---|---|
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 . |
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean |
---|
SolrInfoMBean.Category |
Field Summary |
---|
Fields inherited from class org.apache.solr.handler.RequestHandlerBase |
---|
appends, defaults, httpCaching, initArgs, invariants |
Constructor Summary | |
---|---|
AnalysisRequestHandlerBase()
|
Method Summary | |
---|---|
protected org.apache.solr.common.util.NamedList<List<org.apache.solr.common.util.NamedList>> |
analyzeValue(String value,
AnalysisRequestHandlerBase.AnalysisContext context)
Analyzes the given value using the given Analyzer. |
protected List<org.apache.lucene.util.AttributeSource> |
analyzeValue(String value,
org.apache.lucene.analysis.Analyzer analyzer)
Deprecated. This method is no longer used by Solr |
protected abstract org.apache.solr.common.util.NamedList |
doAnalysis(SolrQueryRequest req)
Performs the analysis based on the given solr request and returns the analysis result as a named list. |
protected Set<String> |
getQueryTokenSet(String query,
org.apache.lucene.analysis.Analyzer analyzer)
Analyzes the given text using the given analyzer and returns the produced tokens. |
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp)
|
Methods inherited from class org.apache.solr.handler.RequestHandlerBase |
---|
getCategory, getDescription, getDocs, getInitArgs, getName, getSource, getSourceId, getStatistics, getVersion, handleRequest, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnalysisRequestHandlerBase()
Method Detail |
---|
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody
in class RequestHandlerBase
Exception
protected abstract org.apache.solr.common.util.NamedList doAnalysis(SolrQueryRequest req) throws Exception
req
- The solr request.
Exception
- When analysis fails.protected org.apache.solr.common.util.NamedList<List<org.apache.solr.common.util.NamedList>> analyzeValue(String value, AnalysisRequestHandlerBase.AnalysisContext context)
value
- Value to analyzecontext
- The analysis context
.
@Deprecated protected List<org.apache.lucene.util.AttributeSource> analyzeValue(String value, org.apache.lucene.analysis.Analyzer analyzer)
value
- The value to analyze.analyzer
- The analyzer to use.
getQueryTokenSet(java.lang.String, org.apache.lucene.analysis.Analyzer)
protected Set<String> getQueryTokenSet(String query, org.apache.lucene.analysis.Analyzer analyzer)
query
- The query to analyze.analyzer
- The analyzer to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |