Search for new documents only

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Search for new documents only

Andrej
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?

Thanks!
Andrej

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7f0fa873-e4a8-4aca-a564-e6096fe0077f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.