highlighting - Solr - Issue with getting highlight with hl.maxAnalyzedChars = -1 -
i facing 1 weird issue while setting hl.maxanalyzedchars -1 fetch highlight random records, other records working fine.
below solr query
http://localhost:8080/solr/core0/select?q=(text:"new year") , (id:2343287)&hl=on&hl.fl=text&hl.fragsize=500&hl.maxanalyzedchars=-1 if remove hl.maxanalyzedchars=-1 above query , or set positive value (higher text field length) , return record proper highlight.
but text field length long, , want limit it, need set hl.maxanalyzedchars -1 . please me solve this.
the hl.maxanalyzedchars , hl.fragsize parameters work in tandem. if want highlight occurences in large field, according maxanalyzedchars documentation:
you can assign large value parameter , use hl.fragsize=0 return highlighting in large fields have size greater 51200 characters.
however, have discovered, solr supports -1 value hl.maxanalyzedchars, indicate analyze characters, suggest following highlight in large field:
&hl.fragsize=0&hl.maxanalyzedchars=-1
Comments
Post a Comment