Entering a search phrase dose not return records expected

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

http://192.168.1.162:9200/fborep/_search?{ "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

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 for some simple examples of using curl.

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