How to get right relevance in my eCommerce project

Hey! I'm new in elasticsearch. In my eCommerce project, I have many various products. And when I want to search for a smartphone let's say iPhone 7 (iphone 7 red), I get results with cases for iPhone 7 (case for iphone 7 red). In my mapping, I use n_gram tokenither with min_gram = 1, and max_gram = 3. What is the best way to say elastic find the best relevant results for my purpose?

Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.