Search for new documents only

I do have the following use case: I want to search for documents with a
query (e.g. a time range), but only for new documents, meaning I only want
to return documents where _version is 1. Is there an elegant way to do this
(_version is not searchable, I think) or do I have to return all documents
and check version afterwards?


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
To view this discussion on the web visit
For more options, visit