Package org.apache.solr.handler
Class AnalysisRequestHandlerBase
- java.lang.Object
- 
- org.apache.solr.handler.RequestHandlerBase
- 
- org.apache.solr.handler.AnalysisRequestHandlerBase
 
 
- 
- All Implemented Interfaces:
- AutoCloseable,- ApiSupport,- SolrInfoBean,- NestedRequestHandler,- SolrMetricProducer,- SolrRequestHandler,- PermissionNameProvider
 - Direct Known Subclasses:
- DocumentAnalysisRequestHandler,- FieldAnalysisRequestHandler
 
 public abstract class AnalysisRequestHandlerBase extends RequestHandlerBase A base class for all analysis request handlers.- Since:
- solr 1.4
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classAnalysisRequestHandlerBase.AnalysisContextServes as the context of an analysis process.protected static classAnalysisRequestHandlerBase.ListBasedTokenStreamTokenStream that iterates over a list of pre-existing Tokensstatic interfaceAnalysisRequestHandlerBase.TokenTrackingAttributeThis is anAttributeused to track the positions of tokens in the analysis chain.static classAnalysisRequestHandlerBase.TokenTrackingAttributeImplImplementation ofAnalysisRequestHandlerBase.TokenTrackingAttribute.- 
Nested classes/interfaces inherited from class org.apache.solr.handler.RequestHandlerBaseRequestHandlerBase.HandlerMetrics
 - 
Nested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProviderPermissionNameProvider.Name
 - 
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBeanSolrInfoBean.Category, SolrInfoBean.Group
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static Set<org.apache.lucene.util.BytesRef>EMPTY_BYTES_SET- 
Fields inherited from class org.apache.solr.handler.RequestHandlerBaseaggregateNodeLevelMetricsEnabled, appends, defaults, httpCaching, initArgs, invariants, metrics, solrMetricsContext
 - 
Fields inherited from interface org.apache.solr.security.PermissionNameProviderANY, NULL, values
 - 
Fields inherited from interface org.apache.solr.request.SolrRequestHandlerTYPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description AnalysisRequestHandlerBase()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.apache.solr.common.util.NamedList<? extends Object>analyzeValue(String value, AnalysisRequestHandlerBase.AnalysisContext context)Analyzes the given value using the given Analyzer.protected abstract org.apache.solr.common.util.NamedListdoAnalysis(SolrQueryRequest req)Performs the analysis based on the given solr request and returns the analysis result as a named list.protected Set<org.apache.lucene.util.BytesRef>getQueryTokenSet(String query, org.apache.lucene.analysis.Analyzer analyzer)Analyzes the given text using the given analyzer and returns the produced tokens.voidhandleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp)- 
Methods inherited from class org.apache.solr.handler.RequestHandlerBasegetApis, getCategory, getDescription, getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfo
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.solr.api.ApiSupportregisterV1, registerV2
 - 
Methods inherited from interface org.apache.solr.security.PermissionNameProvidergetPermissionName
 - 
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducerclose
 
- 
 
- 
- 
- 
Field Detail- 
EMPTY_BYTES_SETpublic static final Set<org.apache.lucene.util.BytesRef> EMPTY_BYTES_SET 
 
- 
 - 
Method Detail- 
handleRequestBodypublic void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception - Specified by:
- handleRequestBodyin class- RequestHandlerBase
- Throws:
- Exception
 
 - 
doAnalysisprotected abstract org.apache.solr.common.util.NamedList doAnalysis(SolrQueryRequest req) throws Exception Performs the analysis based on the given solr request and returns the analysis result as a named list.- Parameters:
- req- The solr request.
- Returns:
- The analysis result as a named list.
- Throws:
- Exception- When analysis fails.
 
 - 
analyzeValueprotected org.apache.solr.common.util.NamedList<? extends Object> analyzeValue(String value, AnalysisRequestHandlerBase.AnalysisContext context) Analyzes the given value using the given Analyzer.- Parameters:
- value- Value to analyze
- context- The- analysis context.
- Returns:
- NamedList containing the tokens produced by analyzing the given value
 
 
- 
 
-