It is not possible to query on the version number. I asked the same
question a while back.
--
Ivan
On Fri, Feb 10, 2012 at 10:49 PM, Mark Waddle mark@markwaddle.com wrote:
Is it possible to query for documents that have a specific version number,
or even better with a range?This seems to hit all docs
http://localhost:9200/patent/grant/_search?q=version:[2+TO+*]&pretty=true&version=trueAnd these hit none
http://localhost:9200/patent/grant/_search?q=_version:[2+TO+*]&pretty=true&version=true
http://localhost:9200/patent/grant/_search?q=version:2&pretty=true&version=true
http://localhost:9200/patent/grant/_search?q=_version:2&pretty=true&version=trueI know I have at least a handful of docs with version of 2.
Thanks,
Mark