I’m a beginner in solr, I need to add the highlight configuration (color, snippet, ….) in solrConfig.xml. which tag shall I use?? can anyone give an example ??.
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can specify the highlight parameters in request url as well as solrconfig.xml
The solrconfig.xml file available as a part of the packaged solr example adds in the highlighting settings.
e.g. –
The highlight component can be configured for the fields needed to be highlighted on, the snippets size, count, snippets formatter and much more.
By default the items are highlight using the
<em></em>tags.For colored highlight you would need to use the colored fragmentsBuilder and fast vector highlighter.
Also, for FastVectorHighlighter requires the field is termVectors=on, termPositions=on and termOffsets=on
Detailed list of parameters @ http://wiki.apache.org/solr/HighlightingParameters