Michael
Michael

Reputation: 14228

Getting snippets in Solr

I'm running Solr + Nutch and need to get a snippet of each result. I tried setting hl to true in the query URL but I still get the same XML result (without snippets). Any ideas on how to get this done?

Upvotes: 1

Views: 3039

Answers (1)

Paige Cook
Paige Cook

Reputation: 22555

You need to specify the fields that you want highlight results returned for by passing field names to the hl.fl parameter in your query. Please see HighlightingParameters on the Solr Wiki for more details and examples.

Upvotes: 1

Related Questions