I've been toggling use_dis_max on and off but can't seem to decipher what
exactly is going on. From the Elasticsearch documentation, dis_max is
mentioned as "Since several queries are generated, combining them can be
automatically done either using a dis_maxquery or a simple bool query. "
What exactly is meant by combining them? I understand individual queries
are run for my query term ('china') to be run against each field specified
and documents with that field matching my term are returned with a score,
but what happens afterward? From dis_max query documentation, I assume the
highest score for a document is returned, but how about when I set
use_dis_max to false then? At least from what I'm seeing with my data set,
setting dis_max to false or true produces identical results.
I've been toggling use_dis_max on and off but can't seem to decipher what
exactly is going on. From the Elasticsearch documentation, dis_max is
mentioned as "Since several queries are generated, combining them can be
automatically done either using a dis_maxquery or a simple bool query. "
What exactly is meant by combining them? I understand individual queries
are run for my query term ('china') to be run against each field specified
and documents with that field matching my term are returned with a score,
but what happens afterward? From dis_max query documentation, I assume the
highest score for a document is returned, but how about when I set
use_dis_max to false then? At least from what I'm seeing with my data set,
setting dis_max to false or true produces identical results.
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.