mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-27 18:38:41 +00:00
This adds support for Lucene's SimpleQueryParser by adding a new type of query called the `simple_query_string`. The `simple_query_string` query is designed to be able to parse human-entered queries without throwing any exceptions. Resolves #4159
9 lines
149 B
JSON
9 lines
149 B
JSON
{
|
|
"simple_query_string": {
|
|
"query": "foo bar",
|
|
"analyzer": "keyword",
|
|
"fields": ["body^5","_all"],
|
|
"default_operator": "and"
|
|
}
|
|
}
|