|
@@ -53,6 +53,25 @@ Be aware that wildcard queries can use an enormous amount of memory and
|
|
perform very badly -- just think how many terms need to be queried to
|
|
perform very badly -- just think how many terms need to be queried to
|
|
match the query string `"a* b* c*"`.
|
|
match the query string `"a* b* c*"`.
|
|
|
|
|
|
|
|
+[WARNING]
|
|
|
|
+=======
|
|
|
|
+Pure wildcards `\*` are rewritten to <<query-dsl-exists-query,`exists`>> queries for efficiency.
|
|
|
|
+As a consequence, the wildcard `"field:*"` would match documents with an emtpy value
|
|
|
|
+ like the following:
|
|
|
|
+```
|
|
|
|
+{
|
|
|
|
+ "field": ""
|
|
|
|
+}
|
|
|
|
+```
|
|
|
|
+\... and would **not** match if the field is missing or set with an explicit null
|
|
|
|
+value like the following:
|
|
|
|
+```
|
|
|
|
+{
|
|
|
|
+ "field": null
|
|
|
|
+}
|
|
|
|
+```
|
|
|
|
+=======
|
|
|
|
+
|
|
[WARNING]
|
|
[WARNING]
|
|
=======
|
|
=======
|
|
Allowing a wildcard at the beginning of a word (eg `"*ing"`) is particularly
|
|
Allowing a wildcard at the beginning of a word (eg `"*ing"`) is particularly
|