Exclude field in hightlight


(Sergi) #1

Hello!

Is possible exclude fields using * in hightlight? I have a field of 12.000 characters and I would like only exclude this field. For now I'm using this structure of search:

GET offers/_search
{
"query": {
"bool": {
"should": [
{
"query_string": {
"query": "game*",
"default_operator": "and",
"analyze_wildcard": true,
"boost": 1
}
}
],
}
},
"highlight": {
"fields": {
"*": {
"type": "plain" }
},
"require_field_match": false
}
}

Thanks!!


(system) #2

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