I would like to read over all the docs for an index in timestamp order.
Does anyone have a suggestion as to what would be the best way to do this
using the python client?
At the moment I'm using the searchhttp://elasticsearch-py.readthedocs.org/en/latest/api.html function
provided. From reading the api docs I should benefit by using the scroll
option however the docs on the python client api are unclear
as to how you use the scroll on repeated searches.
there is a helper function that will help you with the repeated
searches (do them for you) in the helpers module (0).
Unfortunately scroll/scan combination doesn't support sorting since it
would be very expensive to do. If you need the results sorted you have
to use normal search method and do the pagination yourself.
I would like to read over all the docs for an index in timestamp order.
Does anyone have a suggestion as to what would be the best way to do this
using the python client?
At the moment I'm using the search function provided. From reading the api
docs I should benefit by using the scroll option however the docs on the
python client api are unclear
as to how you use the scroll on repeated searches.
there is a helper function that will help you with the repeated
searches (do them for you) in the helpers module (0).
Unfortunately scroll/scan combination doesn't support sorting since it
would be very expensive to do. If you need the results sorted you have
to use normal search method and do the pagination yourself.
I would like to read over all the docs for an index in timestamp order.
Does anyone have a suggestion as to what would be the best way to do this
using the python client?
At the moment I'm using the search function provided. From reading the
api
docs I should benefit by using the scroll option however the docs on the
python client api are unclear
as to how you use the scroll on repeated searches.
Regards
Andrew
--
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.
To view this discussion on the web visit
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.