Package org.apache.solr.handler
Class FieldAnalysisRequestHandler
- java.lang.Object
- 
- org.apache.solr.handler.RequestHandlerBase
- 
- org.apache.solr.handler.AnalysisRequestHandlerBase
- 
- org.apache.solr.handler.FieldAnalysisRequestHandler
 
 
 
- 
- All Implemented Interfaces:
- AutoCloseable,- ApiSupport,- SolrInfoBean,- NestedRequestHandler,- SolrMetricProducer,- SolrRequestHandler,- PermissionNameProvider
 
 public class FieldAnalysisRequestHandler extends AnalysisRequestHandlerBase Provides the ability to specify multiple field types and field names in the same request. Expected parameters:table of parameters Name Type required Description Multi-valued analysis.fieldname string no When present, the text will be analyzed based on the type of this field name. Yes, this parameter may hold a comma-separated list of values and the analysis will be performed for each of the specified fields analysis.fieldtype string no When present, the text will be analyzed based on the specified type Yes, this parameter may hold a comma-separated list of values and the analysis will be performed for each of the specified field types analysis.fieldvalue string no The text that will be analyzed. The analysis will mimic the index-time analysis. No analysis.queryORqstring no When present, the text that will be analyzed. The analysis will mimic the query-time analysis. Note that the analysis.queryparameter as precedes theqparameters.No analysis.showmatch boolean no When set to trueand when query analysis is performed, the produced tokens of the field value analysis will be marked as "matched" for every token that is produces by the query analysisNo Note that if neither analysis.fieldname and analysis.fieldtype is specified, then the default search field's analyzer is used. Note that if one of analysis.value or analysis.query or q must be specified - Since:
- solr 1.4
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.solr.handler.AnalysisRequestHandlerBaseAnalysisRequestHandlerBase.AnalysisContext, AnalysisRequestHandlerBase.ListBasedTokenStream, AnalysisRequestHandlerBase.TokenTrackingAttribute, AnalysisRequestHandlerBase.TokenTrackingAttributeImpl
 - 
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 Summary- 
Fields inherited from class org.apache.solr.handler.AnalysisRequestHandlerBaseEMPTY_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 FieldAnalysisRequestHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.StringgetDescription()Simple one or two line descriptionPermissionNameProvider.NamegetPermissionName(AuthorizationContext request)protected org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList>handleAnalysisRequest(org.apache.solr.client.solrj.request.FieldAnalysisRequest request, IndexSchema schema)Handles the resolved analysis request and returns the analysis breakdown response as a named list.- 
Methods inherited from class org.apache.solr.handler.AnalysisRequestHandlerBaseanalyzeValue, getQueryTokenSet, handleRequestBody
 - 
Methods inherited from class org.apache.solr.handler.RequestHandlerBasegetApis, getCategory, 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.metrics.SolrMetricProducerclose
 
- 
 
- 
- 
- 
Method Detail- 
doAnalysisprotected org.apache.solr.common.util.NamedList doAnalysis(SolrQueryRequest req) throws Exception Description copied from class:AnalysisRequestHandlerBasePerforms the analysis based on the given solr request and returns the analysis result as a named list.- Specified by:
- doAnalysisin class- AnalysisRequestHandlerBase
- Parameters:
- req- The solr request.
- Returns:
- The analysis result as a named list.
- Throws:
- Exception- When analysis fails.
 
 - 
getDescriptionpublic String getDescription() Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
- getDescriptionin interface- SolrInfoBean
- Specified by:
- getDescriptionin class- RequestHandlerBase
 
 - 
handleAnalysisRequestprotected org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList> handleAnalysisRequest(org.apache.solr.client.solrj.request.FieldAnalysisRequest request, IndexSchema schema)Handles the resolved analysis request and returns the analysis breakdown response as a named list.- Parameters:
- request- The request to handle.
- schema- The index schema.
- Returns:
- The analysis breakdown as a named list.
 
 - 
getPermissionNamepublic PermissionNameProvider.Name getPermissionName(AuthorizationContext request) 
 
- 
 
-