public class FieldAnalysisRequestHandler extends AnalysisRequestHandlerBase
| 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.query OR q |
string | no | When present, the text that will be analyzed. The analysis will mimic the query-time analysis. Note that the
analysis.query parameter as precedes the q parameters. |
No |
| analysis.showmatch | boolean | no | When set to true and 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 analysis |
No |
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
AnalysisRequestHandlerBase.AnalysisContext, AnalysisRequestHandlerBase.ListBasedTokenStream, AnalysisRequestHandlerBase.TokenTrackingAttribute, AnalysisRequestHandlerBase.TokenTrackingAttributeImplSolrInfoBean.Category, SolrInfoBean.GroupEMPTY_BYTES_SETappends, defaults, httpCaching, initArgs, invariants, solrMetricsContextTYPE| Constructor and Description |
|---|
FieldAnalysisRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected NamedList |
doAnalysis(SolrQueryRequest req)
Performs the analysis based on the given solr request and returns the analysis result as a named list.
|
String |
getDescription()
Simple one or two line description
|
protected NamedList<NamedList> |
handleAnalysisRequest(FieldAnalysisRequest request,
IndexSchema schema)
Handles the resolved analysis request and returns the analysis breakdown response as a named list.
|
analyzeValue, getQueryTokenSet, handleRequestBodygetApis, getCategory, getInitArgs, getMetricNames, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricRegistry, getMetricsSnapshot, registerMetricNameclose, getUniqueMetricTag, initializeMetricsregisterV1, registerV2protected NamedList doAnalysis(SolrQueryRequest req) throws Exception
AnalysisRequestHandlerBasedoAnalysis in class AnalysisRequestHandlerBasereq - The solr request.Exception - When analysis fails.public String getDescription()
SolrInfoBeangetDescription in interface SolrInfoBeangetDescription in class RequestHandlerBaseprotected NamedList<NamedList> handleAnalysisRequest(FieldAnalysisRequest request, IndexSchema schema)
request - The request to handle.schema - The index schema.Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.