Can i filter/query by _version?

I'm indexing a lot of records of type "customer" and manually setting "_id"
from an internal data source.
Our internal ID should be unique but during testing I see one record having
"_version" : 2.

I'm trying to query all records with "_version" greater than 1 but having a
hard time, any ideas?

Thanks - Ben

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

The _version field is not indexed, therefore you cannot query/filter on it.

Cheers,

Ivan

On Thu, Nov 14, 2013 at 12:13 PM, ben schulte ben.schulte@gmail.com wrote:

I'm indexing a lot of records of type "customer" and manually setting
"_id" from an internal data source.
Our internal ID should be unique but during testing I see one record
having "_version" : 2.

I'm trying to query all records with "_version" greater than 1 but having
a hard time, any ideas?

Thanks - Ben

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.