*My final goal is to have following search precedence:* 1. Exact phrase match 2. Exact word match with incremental distance 3. Plurals 4. Substring
*Suppose I have following documents:* i. men’s shaver ii. men’s shavers iii. men’s foil shaver iv. men’s foils shaver v. men’s foil shavers vi. men’s foils shavers *Case 1: *search for : “men’s foil shaver” *Expected result:* 1. men’s foil shaver <------ exact phrase match 2. men’s foil shavers <------ exact word match on 2 of 3 words with 0 word distance + plural 3. men’s foils shaver <------ exact word match on 2 of 3 words with 1 word distance + plural 4. men’s foils shavers <------ exact word match on 1 of 3 words + 2 plurals 5. men’s shaver <------ exact word match on 2 of 3 words (66% match) 6. men’s shavers <------ exact word match on 1 of 3 words + plural (66% match) *Case 2: *search for : “men’s foil shavers” *Expected result:* 1. men’s foil shavers <------ exact phrase match 2. men’s foil shaver <------ exact word match on 2 of 3 words with 0 word distance + singular 3. men’s foils shavers <------ exact word match on 2 of 3 words with 1 word distance + singular 4. men’s foils shaver <------ exact word match on 1 of 3 words + 2 singulars 5. men’s shavers <------ exact word match on 2 of 3 words (66% match) 6. men’s shaver <------ exact word match on 1 of 3 words + singular (66% match) *Case 3:* search for : “men’s foils shavers” *Expected result:* 1. men’s foils shavers <------ exact phrase match 2. men’s foils shaver <------ exact word match on 2 of 3 words with 0 word distance + singular 3. men’s foil shavers <------ exact word match on 2 of 3 words with 1 word distance + singular 4. men’s foil shaver <------ exact word match on 1 of 3 words + 2 singulars 5. men’s shavers <------ exact word match on 2 of 3 words (66% match) 6. men’s shaver <------ exact word match on 1 of 3 words + singular (66% match) Is there any way in elasticsearch I can achieve this? This question is related to my other question which is not answered yet. Link to my other question " https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/elasticsearch/ui9OR7JARs4/Mp3oOtTqY0EJ ". Any suggestion would help! Thank you. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c2ead70e-c5d6-4001-87fd-645a16e670dc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.