I was reading up on the match query and noticed that it has a
cutoff_frequency parameter, which seems to do pretty much what the common
terms query does.
What is the difference between the common and match queries?
When would I want to use common terms over match?
Ultimately, would the direction be to have common terms query roll up
into the match query (with any differences added to match)?
On Monday, May 12, 2014 4:22:51 PM UTC-4, Mike wrote:
I was reading up on the match query and noticed that it has a
cutoff_frequency parameter, which seems to do pretty much what the common
terms query does.
What is the difference between the common and match queries?
When would I want to use common terms over match?
Ultimately, would the direction be to have common terms query roll
up into the match query (with any differences added to match)?
They should produce the same exact query (CommonTermsQuery). The only thing
I can think of that is different is the CommonTerms query provides more
options other than just the cutoff_frequency (i.e. low_freq_operator,
high_freq_operator, etc) which are not available in the Match query. I do
not know of any plans to "merge/rollup" the two so for now, they remain
separate.
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.