Hello,
I'm trying to highlight text using words from other field. What do I mean?
I have a documents similar to the following:
{
property: 1,
content: "a lot of animals including cats and dogs",
keywords: ["cat", "dog"]
},
{
property: 1,
content: "A lions and zebras are leaving in Africa",
keywords: ["zebra", "lion"]
}
I'm searching by property
field, but I want the content
to be highlighted using query built from keywords
Is it possible?
Thanks!