-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Closed
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>bughelp wantedadoptmeadoptme
Description
The query_string query has < and > operators that make it easy to build range queries. For instance, age:>18 is equivalent to age:{18 TO *]. The issue however is that given that it is implemented on top of the base Lucene query parser (< and > are handled in MapperQueryParser#getFieldQuerySingle), they cannot be escaped like other query operators. So if you want to search for a term that starts with < or > in a keyword field, the only way to do so is to quote the searched term, eg. my_field:">value".
Metadata
Metadata
Assignees
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>bughelp wantedadoptmeadoptme