# Entering a search phrase dose not return records expected

**URL:** <https://discuss.elastic.co/t/entering-a-search-phrase-dose-not-return-records-expected/63503>\
**Category:** Elasticsearch\
**Created:** [October 20, 2016, 12:44pm UTC](https://discuss.elastic.co/t/entering-a-search-phrase-dose-not-return-records-expected/63503 "2016-10-20T12:44:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkarnecki](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dkarnecki](https://discuss.elastic.co/u/dkarnecki)\
**Post date:** [October 20, 2016, 12:44pm UTC](https://discuss.elastic.co/t/entering-a-search-phrase-dose-not-return-records-expected/63503/1 "2016-10-20T12:44:56Z")

</div>

Hello All,  
Can anyone see what is incorrect about the following command?

[http://192.168.1.162:9200/fborep/\_search?{](http://192.168.1.162:9200/fborep/_search?%7B) "query":{"bool": {"must": {"wildcard": {"DESC":"_post traumatic stress disorder_"}}}}}}}&size=100&pretty&explain

When submitted from Phython code this returns correct results. Of course the syntax is different.  
elastic\_query = es.search(index='fborep',body={"size":1000,"query":{"bool":{"must":  
[{"wildcard":{"DESC":"_post traumatic stress disorder_"}}]}}})

The first command returns what looks like "all" records from the start of the database up to the "size=" record number.

Hanks for any help in advance.  
Dave K

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [October 20, 2016, 4:38pm UTC](https://discuss.elastic.co/t/entering-a-search-phrase-dose-not-return-records-expected/63503/2 "2016-10-20T16:38:01Z")

</div>

Are you using curl? You cannot sent a search request like this as a url parameter (the `q` parameter only works for `query_string`), it should be sent as body. See the [README](https://github.com/elastic/elasticsearch/blob/master/README.textile) for some simple examples of using curl.

---

<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:** [October 23, 2016, 4:38pm UTC](https://discuss.elastic.co/t/entering-a-search-phrase-dose-not-return-records-expected/63503/3 "2016-10-23T16:38:41Z")

</div>

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