You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Steve Suppe <ss...@llnl.gov> on 2008/02/22 02:28:46 UTC

Offsets in results?

Hi all,

I apologize if this question has been asked, but I've been unable to find 
the answer in the archives.

Is there a way to get the offsets for results from a search in JSON format, 
or even from SOLR in general (regardless of format, XML even)?  As in, I 
have fields set that I am searching over, and am returning those fields in 
my JSON object, and would like to know either a) the offsets of those 
fields or b) the offsets of the part that matched.

I understand that there is a highlighting plugin, but for various reasons 
I'd like to get my hands on the offsets themselves.  Is this something I 
need to hack up on my own?

Thanks,
Steve Suppe