I Have a use-case where I need to tag dynamic keywords(NER tags) to words present in a text field. Now, the dynamic keywords are available in the TokenFilter either through another field or Through a http endpoint. As the TokenFilter doesn't have access to other fields what is the best way to do it??
For Example: This is a sample document below:
{
"title_field": "my name is Rahul"
"tag_field": {"rahul": ["person", "developer"]}
}
So, Basically while analysing the title_field, Tokens: person & developer should also be pointing to rahul so that when I search for "person", I get this document as the output.
Note: I do not want to add "tags" in a separate field and search there since I want to support highlighting and proximity queries.
Any help would be appreciated !!
Thank you !!