Hello,
I am tring to use versioning feature as increment counter. I got
documents like {"event":"event1"} and i put them when and event
happens, so every time i put version is incremented.
I can search that index and i use version as event counter.
I get
Query Failed [Failed to execute main query]]; nested:
PropertyAccessException[[Error: could not access: _version; in class:
org.elasticsearch.search.lookup.DocLookup]\n[Near : {...
doc._version ....}]\n ^\n[Line: 1, Column: 1]]
Version is not exposed as a "doc" value in scripts. Open an issue, can be added (though requires some thought, and if the realtime value should be exposed or the "last refresh" value).
On Monday, May 9, 2011 at 12:04 PM, OT wrote:
Hello,
I am tring to use versioning feature as increment counter. I got
documents like {"event":"event1"} and i put them when and event
happens, so every time i put version is incremented.
I can search that index and i use version as event counter.
I get
Query Failed [Failed to execute main query]]; nested:
PropertyAccessException[[Error: could not access: _version; in class:
org.elasticsearch.search.lookup.DocLookup]\n[Near : {...
doc._version ....}]\n ^\n[Line: 1, Column: 1]]
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.