> 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.


      

Reply via email to