lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Benedetti <>
Subject Re: position of the search term
Date Mon, 28 Sep 2015 10:19:41 GMT
So, based on my knowledge, it is not possible ( except if you customise the
component) .
Read here :

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


2015-09-27 19:58 GMT+01:00 Mark Fenbers <>:

> 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 -
Blog -

"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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message