My question is very simple yet I can't find an answer for it:
Situation:
I am creating search feature for a small online store that uses elastic search PHP library.
I am using client->bulk() operation to index all the products from the database, however I need to display how many items have been indexed out of the total products available.
When I use the client->count() operation to get the number of items, it is still 0 until after a few seconds, then it gives me the correct count, so I image the elastic search indexation doesn't complete after I run the bulk() operation.
Question:
How can I tell elastic search to "wait" for the bulk indexation to actually finish when I call bulk() so when I call the count() method it actually returns the number of items that have been indexed?
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.