Home > front end >  Can elasticsearch magically filters fields while matching a tittle?
Can elasticsearch magically filters fields while matching a tittle?

Time:09-02

The question is simple, when a user search for a red fox, I want to match the title for fox, and also I want to filter the color by red, because a color appears in the search term and the title field may not contain the keyword red.

So is there a way to achieve this within elasticsearch, or do I have to get the tokenized phrase first and then construct the query in application level?

Many thanks.

--- Edit ---

Can elasticsearch magically identify a keyword and filter a specific field, rather than filtering by all the tokenized keywords?

CodePudding user response:

As far as i know it is not possible to do this entity recognize (in your case finding color name) in Elasticsearch OOTB. You can use application level or third party library for same outside elasticsearch.

Also, 8.x version support entity extraction with third party model and you can deploy model in Elasticsearch itself. You can read my medium blog here on same topic.

  • Related