Our app is using a bool query that may have aquery_string
string query in it.
When searching for date values I get no results from the query_string
query but if I use a range
query it works. Those two queries come from different UX parts (a general purpose query input for the query_string
query and a date picker for the range
query).
Having the app match documents consistently using both input methods would greatly improve the user experience.
So far I have tried entering the date in the query_string
in different formats, even copying and pasting a value from the index, using a more complex query_string
selecting one of the date fields and adding a multifield dynamic mapping for date
fields.
Any suggestions on how to make the query_string
query match documents based on a date
field?
Thanks for any help you can provide.