Skip to content

It would be nice if zero_terms_query was supported by the new match_phrase syntax #29344

@JFogh

Description

@JFogh

Describe the feature:
In the new NEST version 6.x.x the "type" option on "match" query is obsolete.
Thus you now use "match_phrase" instead of match with type "phrase".
When using the old "match" there was a "zero_terms_query" possibility supported.
This is not supported by the "match_phrase" query.
This makes it harder to rewrite queries using the old "match"-syntax to use the new "match_phrase",
thus it would be nice to have the "zero_terms_query" possibility, especially for backwards compability.

Elasticsearch version (bin/elasticsearch --version):

Plugins installed: []

JVM version (java -version):

OS version (uname -a if on a Unix-like system):

Description of the problem including expected versus actual behavior:

Steps to reproduce:

Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.

Provide logs (if relevant):

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions