# Possible bug in pyres search interface : different results from XGET and search through pyres

**URL:** <https://discuss.elastic.co/t/possible-bug-in-pyres-search-interface-different-results-from-xget-and-search-through-pyres/8714>\
**Category:** Elasticsearch\
**Created:** [August 10, 2012, 11:54pm UTC](https://discuss.elastic.co/t/possible-bug-in-pyres-search-interface-different-results-from-xget-and-search-through-pyres/8714 "2012-08-10T23:54:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Pratap](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Abhishek\_Pratap](https://discuss.elastic.co/u/Abhishek_Pratap)\
**Post date:** [August 10, 2012, 11:54pm UTC](https://discuss.elastic.co/t/possible-bug-in-pyres-search-interface-different-results-from-xget-and-search-through-pyres/8714/1 "2012-08-10T23:54:10Z")

</div>

Hi Guys

I am sort of confused why I am getting two different search results when I  
query against same index using webservice and ES python's API pyres.

from webservice  
curl -XGET  
128.55.54.143:9201/ncbi\_taxa\_names/taxa\_names/\_search?q=tax\_name:Myxococcus  
{"took":5,"timed\_out":false,"\_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":15,"  
}}}} # only copying the #hits

from pyres:  
conn.open\_index("ncbi\_taxa\_names")  
q = TermQuery("tax\_name","Myxococcus")  
results = conn.search(query=q)  
for r in results:  
print r  
.....:  
no hits :

Am I missing something ?

Thanks!  
-Abhi

--

---

<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 6, 2017, 3:16am UTC](https://discuss.elastic.co/t/possible-bug-in-pyres-search-interface-different-results-from-xget-and-search-through-pyres/8714/2 "2017-07-06T03:16:45Z")

</div>


