I am using the following JSON to apply several conditions to the search query. {"Query_string": {"default_field:" andi_new "" query ":" Network: GET My_index / my_type / _search {"query": {"query": {"query": { OnNework and Publisher: someplublisher "}}," filter ": {" category ": {" time ": {" gte ":" 2015-03-12 00:00:00 "," lte ":" 2015-03- 12 23:59:59 "}}}}}}
I am selecting filter values based on the drop down in my PHP web application, so all filters are not applicable once. .
If I only have condition in the query string query, everything is working fine. Also, if I Whether or not I add 'end' and provide another column status as shown above, then it is not working. Applying different situations?
After a default_field you are missing a double reverse quote and at the end of one comma Try the question below:
{"query": {"filtered": {"query": {"query_string": {"default_field": "andi_new", "query" : "Network: Onnetwork and Publ A: someplublisher "}}," filter ": {" category ": {" time ": {" gte ":" 2015-03-12 00:00:00 "," lte ":" 2015-03 -12 23 : 59: 59 "}}}}}}
No comments:
Post a Comment