# Not receiving the proper result in elasticsearch

**URL:** <https://discuss.elastic.co/t/not-receiving-the-proper-result-in-elasticsearch/48571>\
**Category:** Elasticsearch\
**Created:** [April 27, 2016, 3:31pm UTC](https://discuss.elastic.co/t/not-receiving-the-proper-result-in-elasticsearch/48571 "2016-04-27T15:31:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shivendra.Singh](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Shivendra.Singh](https://discuss.elastic.co/u/Shivendra.Singh)\
**Post date:** [April 27, 2016, 3:31pm UTC](https://discuss.elastic.co/t/not-receiving-the-proper-result-in-elasticsearch/48571/1 "2016-04-27T15:31:14Z")

</div>

Hi There,

I have my search query for my search box on website which will search on the prefix of the indexed data. For e.g Movie Name = "THE WOMAN IN BLACK" and there are many more values of Movie Name such as Movie Name = "THE PAPER BOY"  
Movie Name = "THE LEGEND OF TARZAN ".  
Movie Name = "THE LEGEND OF TARZAN (3D)".

In ,my search query i check on every keyword user type and on that basis, below is my search query

'index' : 'pvrmod2',  
'type' : 'movie',  
'body' : {  
"from" : 0,  
"size" : 5,  
'query' : {  
'prefix' : {  
$field =\> $first  
}  
}  
}

but when i am typing "the pap" my all the record comes which starts with THE but my record having THE PAPER BOY is not coming..

Can Any one please help me in this.

---

<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:** [July 5, 2017, 10:55pm UTC](https://discuss.elastic.co/t/not-receiving-the-proper-result-in-elasticsearch/48571/2 "2017-07-05T22:55:53Z")

</div>


