Forgot to include: All the three fields used for highlighting are configured as follows:
<field name="title" type="text_general" indexed="true" stored="true" required="true" omitNorms="true" /> <field name="description" type="text_general" indexed="true" stored="true" required="true" omitNorms="true"/> <field name="link_title" type="text_general" indexed="true" stored="true" omitNorms="true" /> Thank You, :Sagar -----Original Message----- From: Bade, Vidya (Sagar) [mailto:vb...@webmd.net] Sent: Friday, September 30, 2016 2:12 PM To: solr-user@lucene.apache.org Subject: Highlighting brings in irrelevant words Hi, I am using Solr 4.10.2 following is my request: defType(Parser)=edismax fl=id,title,description,link_title qf=title description keywords pf=title description hl=true hl.fl=title,description,link_title hl.q=lupus q=lupus I have two records in the index. Both about lupus. When I query using the above, the highlights are returned but not just the query term but also other irrelevant terms as shown below. The only synonym I have for lupus is "lupus,SLE,systemic lupus erythematosus" and I don't have the words "Symptoms" or "Sleep" in the synonyms file. Can anyone tell me what I am doing wrong or how to fix this issue? "highlighting":{ "07":{ "title":["What Are the Symptoms of <b>Lupus</b>?"], "description":["Medical guide to the symptoms of <b>lupus</b>."], "link_title":["<b>Lupus</b>: The <b>Symptoms</b> and Signs"]}, "09":{ "title":["<b>Lupus</b> and <b>Sleep</b>"], "description":["Join this team to get the tips you need to sleep better while living with <b>lupus</b>."], "link_title":["<b>Lupus</b> and <b>Sleep</b>"]}} Thank You, Sagar