Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Field analysis handler - Solr 4

I am working on a test Solr instance using Solr4 (beta) - I am able to see the schema, query data. It works fine!

When I click on the analysis tab in Solr Admin, I get the analysis form. However, when I submit the form, I get an error message - "This Functionality requires the /analysis/field Handler to be registered and active!"

This is the ajax call that is actually performed and it returns a 404.

http:// localhost:8989/solr/core1/analysis/field?wt=json&analysis.fieldvalue=test+dog+cat&analysis.query=cat&analysis.showmatch=true&analysis.fieldname=item_name

How do I configure the analysis/field handler?

In solr3, I was able to perform analysis. Is this feature turned off by default in solr4?

like image 732
Bharad Avatar asked Sep 27 '12 18:09

Bharad


1 Answers

You need to add the field analysis handler to your solrconfig.xml:

<requestHandler name="/analysis/field" class="solr.FieldAnalysisRequestHandler" />
like image 185
Tamas Szasz Avatar answered Oct 11 '22 14:10

Tamas Szasz