# Elasticsearch auto look up query

**URL:** <https://discuss.elastic.co/t/elasticsearch-auto-look-up-query/181714>\
**Category:** Elasticsearch\
**Created:** [May 19, 2019, 2:12pm UTC](https://discuss.elastic.co/t/elasticsearch-auto-look-up-query/181714 "2019-05-19T14:12:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pankaj3s](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pankaj3s/32/46438_2.png) [@pankaj3s](https://discuss.elastic.co/u/pankaj3s)\
**Post date:** [May 19, 2019, 2:12pm UTC](https://discuss.elastic.co/t/elasticsearch-auto-look-up-query/181714/1 "2019-05-19T14:12:16Z")

</div>

I need some help with the below problem statement

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

```auto
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.

Can anyone please help me out with the desired query? 😑

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 16, 2019, 2:24pm UTC](https://discuss.elastic.co/t/elasticsearch-auto-look-up-query/181714/2 "2019-06-16T14:24:54Z")

</div>

Closed on June 16, 2019, 2:24pm UTC

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