Pyppe
May 18, 2022, 2:04pm
1
We've got a mapping for field classes
:
"classes" : { "type" : "integer" }
Is there a way to show highlight for the matching classes if we search it e.g. via terms-query:
{
"terms" : {
"classes" : [ 1, 5, 10 ]
}
}
Even if we define the field in "highlight"
it doesn't come up.
Thanks!
RabBit_BR
(andre.coelho)
May 18, 2022, 4:06pm
2
Hi!
I read once that highlight is not applied to numeric types.
Anyway, you can create a sub field as keyword and test.
Pyppe
May 19, 2022, 7:00am
3
You seem to be right. If the number was keyword
instead of integer
we are starting to see them highlights. Thanks for the tip!
1 Like
system
(system)
Closed
June 16, 2022, 7:00am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.