lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Very basic questions: Indexing text
Date Tue, 29 Jun 2010 06:48:38 GMT
> Could you give an example?
> E.g. lets say I have a field 'title' and a field 'fulltext'
> and my
> search term is 'solr'. What would be the right set of
> parameters to get
> back the whole title-field but only a sniplet of 50 words
> (or three
> sentences or whatever the unit) from the fulltext field.

&q=solr&hl=true&hl.fl=title,fulltext&f.title.hl.fragsize=0

should do it. You can increase the size of snippet (in terms of characters) generated from
fulltext by increasing hl.fragsize value.


      

Mime
View raw message