Re: How to emulate Sphinx "quorum matching operator"?

Thanks for sharing your solution!

On Wed, Apr 11, 2012 at 1:15 PM, Giorgio Salluzzo <
giorgio.salluzzo@gmail.com> wrote:

Here is a query that emulates the same behaviour:

{
"fields": [
"track_id"
],
"query": {
"bool": {
"must": [
{
"query_string": {
"fields": [
"track_name"
],
"query": "dalla parte del toro blu",
"minimum_should_match": "30%",
"use_dis_max": false,
"default_operator": "OR"
}
},
{
"query_string": {
"fields": [
"artist_name",
"artist_aliases"
],
"query": "caparezza gianni",
"minimum_should_match": "30%",
"use_dis_max": false,
"default_operator": "OR"
}
}
]
}
},
"size": 10,
"from": 0,
"sort":
}

On 10 Apr, 17:12, Giorgio Salluzzo giorgio.sallu...@gmail.com wrote:

Hi there,
I'm looking for the best way to emulate a Sphinx operator on
Elasticsearch. Here is the operator explanation on the Sphinx
documentation:

"""
Quorum matching operator introduces a kind of fuzzy matching. It will
only match those documents that pass a given threshold of given words.
The example above ("the world is a wonderful place"/3) will match all
documents that have at least 3 of the 6 specified words.
""""

How can I obtain the same result on Elasticsearch?

Thanks in advance.

Regards,
Giorgio