lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adfel70 <adfe...@gmail.com>
Subject Getting the position of a word via Solr API
Date Mon, 01 Dec 2014 17:12:13 GMT
Hi,
I am trying to retrieve from Solr API the position of a word from a text
field that was indexes but not stored.

I am storing the text field in an external repository and trying to do the
Solr built-in snippet function by myself, outside Solr.

Basically, all I need is to get from Solr the actual offset of the word in
the text.

I have tried 2 things:
1. Using the TermVectorComponent - Got NPE errors. 
2. Using Highlighting mechanism - didn't find the needed option in the API.

If one of this actually works, please tell me how :-)

Is there another way for me to get the location/position/offset of the
searched word from a text that is not stored in Solr?

Thank you very much!!




--
View this message in context: http://lucene.472066.n3.nabble.com/Getting-the-position-of-a-word-via-Solr-API-tp4171877.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message