Show all occurrences of query while highlighting in solr 1.4 -



Show all occurrences of query while highlighting in solr 1.4 -

i have solr setup(1.4) having text field ebook data. params while hitting solr -

"hl.fragsize":"0", "indent":"1", "hl.simple.pre":"{{{", "hl.fl":"body_eng", "hl.maxanalyzedchars":"-1", "wt":"json", "hl":"true", "rows":"1", "fl":"ia,body_length,page_count", "q":"ia:talesofpunjabtol00stee , punjab", "q.op":"and", "f.body_eng.hl.snippets":"428", "hl.simple.post":"}}}", "hl.usephrasehighlighter":"true"}},

however, results show 20 highlighted occurrences of word punjab. tried f.body_eng.hl.snippets":"428" isnt working.

body_eng big text field. highlighting works till length. have tried other words well. in examples, highlighting works till around 54k letter counts.

what reason?

first of all: 1.4 old version of solr. i'm not sure if per field values supported @ time (highlighting introduced solr 1.3). default highlighter changed in 3.1.

you should able highlight occurences in field supplying big value hl.maxanalyzedchars (not sure if -1 want). alternative seek should have big hl.maxanalyzedchars value , big hl.fragsize value (use same value both fields , not 0).

if you're still unable work, test on more recent version of solr see if it's issue has been fixed.

solr

Comments

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

model view controller - MVC Rails Planning -