So, based on my knowledge, it is not possible ( except if you customise the
component) .
Read here :
http://lucene.472066.n3.nabble.com/How-do-I-recover-the-position-and-offset-a-highlight-for-solr-4-1-4-2-td4051763.html

Another data structure that you can think as useful is to store the Term
Vector for your docs and use it.

Cheers

2015-09-27 19:58 GMT+01:00 Mark Fenbers <mark.fenb...@noaa.gov>:

> For the brief period that I had spell-checking working, I noticed that the
> results record had the start/end position within the text of the misspelled
> word.  Is there anyway to get the same start/end position when doing a
> search?  I want to be able to highlight the search term in the text.
> Default config puts <em> tags around the search, but I'm not using an HTML
> renderer and I don't want characters of any sort inserted into the text
> returned in the result set. rather, I just want the start/end position.
> How do I configure that?
>
> Mark
>



-- 
--------------------------

Benedetti Alessandro
Visiting card - http://about.me/alessandro_benedetti
Blog - http://alexbenedetti.blogspot.co.uk

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to