Hi @Aasawari ,
Thank you for taking a look at this scenario.
The order of results should be the default returned by Atlas search.
The main problem is this:
Data stored in the database. “xxxxxx 1.5 ml liquid xxxxxx xxxxx”
User searches for. “1.5mL”
Results that atlas gives in following order for above search query
- xxxxx 15ml liquid xxxxxxxx
- xxxxx xxxxxxxx 15 ml liquid
- 1.5 ml liquid xxxxx xxxxxx
- xxxxx xxxxx 1.5 ml water xxxxx
Ideally, The 3rd and 4th result should come above 1st and 2nd correct, because that matches with user’s input of 1.5mL. That’s the main goal I am trying to achieve.
Things tried addition to what I mentioned in my post:
- I created a custom analyser with edgeGram (min gram - 3 and max gram- 15) and used it just with search analyser for this field.
Surprisingly, its not giving single result where edgeGram would have generated combinations which is present in the database already. I verified that by searching the individual terms generated by edgeGram tokens.