Well, you can get Solr to highlight the entire field if that's what you are
after by setting:
hl.fragsize=0

From
https://cwiki.apache.org/confluence/display/solr/Highlighting#Highlighting-Usage
:
Specifies the approximate size, in characters, of fragments to consider for
highlighting. *0* indicates that no fragmenting should be considered and
the whole field value should be used.


2017-03-28 10:59 GMT+02:00 forest_soup <tanglin0...@gmail.com>:

> Thanks Eric.
>
> Actually solr highlighting function does not meet my requirement. My
> requirement is not showing the highlighted words in snippets, but show them
> in the whole opening document. So I would like to get the term's
> position/offset info from solr. I went through the highlight feature, but
> found that exact info(position/offset) is not returned.
> If you know that info within highlighting feature, could you please point
> it
> out to me?
>
> The most promising way seems to be /tvrh and tv.offsets/tv.positions
> parameters. But I haven't tried it. Any comments on that one?
>
> Thanks!
>
>
>
> --
> View this message in context: http://lucene.472066.n3.
> nabble.com/Is-there-a-way-to-retrieve-the-a-term-s-
> position-offset-in-Solr-tp4326931p4327149.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to