You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by thespider <ma...@rediffmail.com> on 2011/01/03 15:06:10 UTC

Get Exact sentence from solr highligh fragment

Hi,
  
   I have successfully implemented solr search for my application. But, I
have facing an issue now.
My requirement now is to get exact a complete sentence from the highlight
fragment. I want to display a full sentence in the result page. not the
entire fragment.
 Can any one suggest me a way to do this? What are the parameter to be
passed (like hl=true&hl.fragsize=20 ) with the solr search url for
accomplishing this?

Thanks
Mahesh

-- 
View this message in context: http://lucene.472066.n3.nabble.com/Get-Exact-sentence-from-solr-highligh-fragment-tp2184926p2184926.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Re: Get Exact sentence from solr highligh fragment

Posted by Grant Ingersoll <gs...@apache.org>.
I believe you would need to write your own Fragmenter or down stream piece to do this.

-Grant

On Jan 3, 2011, at 9:06 AM, thespider wrote:

> 
> Hi,
> 
>   I have successfully implemented solr search for my application. But, I
> have facing an issue now.
> My requirement now is to get exact a complete sentence from the highlight
> fragment. I want to display a full sentence in the result page. not the
> entire fragment.
> Can any one suggest me a way to do this? What are the parameter to be
> passed (like hl=true&hl.fragsize=20 ) with the solr search url for
> accomplishing this?
> 
> Thanks
> Mahesh
> 
> -- 
> View this message in context: http://lucene.472066.n3.nabble.com/Get-Exact-sentence-from-solr-highligh-fragment-tp2184926p2184926.html
> Sent from the Lucene - General mailing list archive at Nabble.com.

--------------------------
Grant Ingersoll
http://www.lucidimagination.com