Highlighting is not applying to all results


(anvesh) #1

Working on elastic search 6.5.2. Applying the highlight functionality. When I check the results the highlight is applying to the first few records perfectly and after that highlight is not applying to title field. Any solution

Query

GET /_search
{ "size": 80, 
"query": {
  "bool": {
    "must": [{
      "query_string":{
      "query":"admissions", 
      "fields": ["title", "content"]  } 
      } ]
    }},
      
"highlight":{      "pre_tags" : ["<strong>"],
        "post_tags" : ["</strong>"],
  "fields":{
		  "title":{"number_of_fragments" : 0},
		  "content":{"number_of_fragments" : 0}
      }
   }}

(system) closed #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.