lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
Subject Re: Not able to use the highlighting feature! Want to return snippets of text
Date Mon, 21 May 2012 11:26:03 GMT
Take a look at the "/browse" request handler in the example solrconfig.xml 
and compare how it does highlighting to what you are doing. There are a lot 
of little details, so maybe even one might be missing.

Also, you can only highlight stored fields, so make sure that "text" is 
stored. In the Solr example it is not stored and not intended to be stored, 
and highlighting should be performed using some other field containing the 
text as a stored field.

-- Jack Krupansky

-----Original Message----- 
From: 12rad
Sent: Sunday, May 20, 2012 11:26 PM
To: solr-user@lucene.apache.org
Subject: Re: Not able to use the highlighting feature! Want to return 
snippets of text

My query parameters are this:

text:abstract&hl=true&hl.fl=text&f.text.hl.snippets=2&f.text.hl.fragsize=200&debugQuery=true

I still get the entire string as the result in the
<lst name="highlighting"> tag.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Not-able-to-use-the-highlighting-feature-Want-to-return-snippets-of-text-Urgent-tp3985012p3985022.html
Sent from the Solr - User mailing list archive at Nabble.com. 


Mime
View raw message