Hi, I would index sentences as solr documents. If you don't have existing sentence tokenizer, you can Apache OpenNLP for this. https://opennlp.apache.org/documentation/1.5.3/manual/opennlp.html#tools.sentdetect
With this strategy you can retrieve highlighted full sentences. On Thursday, February 27, 2014 4:49 PM, skater <prashantp...@gmail.com> wrote: Please tell me how to get the full sentence as output of search result in SOLR. For example if i am searching for "Sensor" and there is a sentence in the document which has sentence as "This Sensor is working fine." It should provide me the output as This Sensor is working fine. I am trying to use boundaryScanner for this but no help it is not giving me the full sentence . Whatever is the configuration in boundaryScanner finally the fragSize is coming into action and the result is coming based on fragmentSize. I also tried directly regex fragmenter but in this case also finally result is based on fragSize . Please help me .It would be a great help if somebody provides me the exact changes for getting this result . I am using solr 4.6.2 . -- View this message in context: http://lucene.472066.n3.nabble.com/full-sentence-in-solr-search-result-tp4120097.html Sent from the Solr - User mailing list archive at Nabble.com.