Elasticsearch auto look up query

28 Views Asked by At

I need some help with the below problem statement

Problem is to implement auto look up functionality with below mentioned requirement

Input -> BTech
Output ->
 BTech in cse
 b.tech in computer science
 b tech in computer

Input -> B.Tech
Output ->
 BTech in cse
 b.tech in computer science
 b tech in computer

Input -> Tec
Output ->
 Technological Advance 
 Artificial Technology
 BTech in cse
 b.tech in computer science
 b tech in computer

But using text=b.tech, my results also getting matched with "b.e." tokens and this is coming on top. Results should be having btech to be on top. (I have used Ngrams, word_delimiter etc.)

I am not showing my query intenionally here, because it has got much complex which will create confusion. Would appreciate if someone writes from the scratch with a fresh mind.

Can anyone please help me out with the desired query? :|

0

There are 0 best solutions below