As far as I know, these are identical queries. I was experimenting around msearch and tried these two queries, which should have the same running time but was surprised with the results.
The msearch query took around 4 seconds while the search took around 8, which shouldn't be the case since they are supposedly the same query. Is this because of our elasticsearch version or is msearch really supposed to be faster than the normal search. If so, what is the explanation?
Here are the screenshots of the requests and response times, if you need them. I also make sure to reset the cache before doing these queries.
it is very unlikely that msearch is faster than search - slower might make sense as an msearch with more than one request would need for all requests to finish.
In this case it might be that your query is hitting different shards and thus also different nodes. If those nodes have different loads this might result in this.
Hi Alex, thank you for the reply. We made some changes in the past weeks and I can't seem to replicate my problem. Since the changes are related to data nodes setup, I think your hypothesis is right on the spot.
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.