Hi all,
I have the following query:
With ES 7.5
"query": {
"bool": {
"must": [
{
"term": {
"siren": "493754261"
}
}
],
"should": [
{
"multi_match": {
"type": "phrase",
"query": "transfert du protefeuille",
"fields": [
"doc.*"
]
}
},
{
"multi_match": {
"type": "cross_fields",
"query": "Acquisition Fusion Cession Fusion-acquisition Leverage buy out LBO Transfert portefeuille",
"fields": [
"doc.*"
]
}
}
]
}
}
and the following mapping for the doc object:
other fields here,
...
"doc" : {
"properties" : {
"0" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"1" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
...
"n" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
...
other fields here,
The query works fine but if I add a highlights it doens't highlight anything at all.
I tried also to put the query in a highlight_query but the result is not correct neither.
Any ideas ?
Thanks a lot for your help
Christophe