Solr Highlighting returning empty results -


i had search system working fine solr 4.9 out-of-the-box configuration , schema.

in solr 6.2 highlight entries being returned in result, contain document ids - no highlight text.

at first thought because "content" not in default (managed) schema, adding did not make difference. in event there other fields in default schema (author, subject, title,...) return highlight text i'm not getting these either.

highlighting seem enabled in default configuration, , query seems ok (it not return hl text when run admin interface, rules out code):

q=mike&rows=10&start=0&sort=score desc, last_modified desc&wt=json&fl=content_type,fsb_doctype,author,id,last_modified,subject,title,score,url&hl=true&hl.fragsize=250&hl.fl=content,author,subject,title&hl.simple.pre=%3cb%3e&hl.simple.post=%3c%2fb%3e&facet=true&facet.field=fsb_doctype&facet.field=fsb_origin&facet.field=fsb_mission

the schema changes have made addition of 3 custom fields used in faceting.

here's sample of json returned on solr 4.9 system (just highlighting section):

"highlighting":{"/event_20060718.cfm":{"content":[" \n \n \n \n \n \n \n code 582 - events \n \n july 18, 2006 - flight software branch <b>cmmi</b> <b>appraisal</b> \n\n \nthe flight software branch successful in latest <b>cmmi</b> <b>appraisal</b> - scampi class <b>appraisal</b> of supplier agreement management (sam"]},"/sdodocs/":{"content":[" \n \n \n \n \n \n \n sdo flight software \n \n \t \t sdo flight software baselined documents \n(restricted access - contains assets used in <b>cmmi</b> <b>appraisal</b>. access up-to-date sdo fsw documents, see m w.) \n \t \t sdo flight"]},"/lro/":{"content":[" \n \n \n \n \n \n \n lro flight software \n \n \t \t lro flight software baselined documents \n(restricted access - contains assets used in <b>cmmi</b> <b>appraisal</b>. access up-to-date lro fsw documents, see mike b.) \n \t \t lro flight"]},"tdl_582 web&id=501":{"content":[" \n \n \n \n \n \n \n action item 582 web group - group id 501 - closed item \n \n michael \n mike tilley \n update events - <b>cmmi</b> <b>appraisal</b> results official today! \n 09/18/14 - updated/created & deployed:\n\n/default.cfm\n\n/events.cfm"]},"tdl_582 web&id=203":{"content":[" \n \n \n \n \n \n \n action item 582 web group - group id 203 - closed item \n \n michael \n mike tilley \n <b>cmmi</b> <b>appraisal</b> results \"official\" today - post event. \n 10/11/11 - updated/created & moved production (& linux)..\n\n/default.cfm"]},"tdl_bsr fpi&id=1":{"content":[" \n \n \n \n \n \n \n action item bsr fpi group - group id 1 - closed item \n \n michael \n mike tilley \n action: send bsr template, customized fpi, victor. \n 12/15/10 - done (distracted <b>cmmi</b> <b>appraisal</b>!) \n "]},"/event_20080516.cfm":{"content":[" \n \n \n \n \n \n \n code 582 - events \n \n may 16, 2008 - center <b>cmmi</b> <b>appraisal</b> \n\n\n <b>cmmi</b> scampi class <b>appraisal</b> gsfc completed on friday, may 16th. gsfc compliant agency policy regarding <b>cmmi</b> maturity level 2 for"]},"/event_20140918.cfm":{"content":[" \n \n \n \n \n \n \n code 582 - events \n \n september 18, 2014 - center <b>cmmi</b> <b>appraisal</b> \n\n\n <b>cmmi</b> scampi class <b>appraisal</b> gsfc completed on monday, september 15th. gsfc continues compliant agency policy regarding <b>cmmi</b>"]},"tdl_582 web&id=353":{"content":[" & made mistake of trying use same repository team, , <b>cmmi</b> <b>appraisal</b> evidence. result, team never used it, , contains sensitive <b>appraisal</b> data. closing ai. \n "]},"tdl_582 web&id=67":{"content":[" \n \n \n \n \n \n \n action item 582 web group - group id 67 - closed item \n \n michael \n mike tilley \n had find sei certification page gsfc <b>cmmi</b> <b>appraisal</b> - wasn't easy. should post link on website"]} 

and here's sample of 6.1 json results (slightly different document set on server, first result same in both cases:

"highlighting":{"/event_20060718.cfm":{},"/event_20080516.cfm":{},"/event_20140918.cfm":{},"/event_20111011.cfm":{},"/lro/":{},"/sdodocs/":{},"/event_20060201.cfm":{},"tdl_582 web&id=353":{},"tdl_582 web&id=67":{},"tdl_bsr jwst&id=94":{} 

so i'm getting list of document ids no highlight text.


Comments