How can I filter by the `_version` field in elasticsearch? I tried to run
the following query (using YAML instead of JSON) to get documents with
_version greater than or equal to 4, but nothing is getting returned even
though the document definitely has documents with that version number.
query:
filtered:
filter:
range:
_version:
gte: 4
I know `_version` is working because in general I can do aggregations on it
like
aggs:
versions:
terms:
field: _version
Also how can I get `_version` to appear in the list of fields? I try the
following but only the `name` field is shown, not version.
fields:
- name
- _version
I haven't done anything in my mapping regarding _version, do I need to
customize it's mapping in some way before I can filter or display it?
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/16d20efb-3967-43f8-a860-b694d70ef4ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.