Hi,
I'm trying to implement fuzzy query with fos elastica (over symfony2). I succed to perform a perfect match, but i would like to select all entries which have their field source matching minimum 80% of the selected one.
Then, i would like to be able to sort the results by their matching score (eg: 1st: 100%, 2nd: 95%, 3rd: 85% etc..).
Below what i have tested, but i don't understand the difference between the fuzzy and minimumShouldMatch score.
$fieldQuery = new \Elastica\Query\Match();
$fieldQuery->setFieldQuery('source', $data->getSource());
$fieldQuery->setFieldMinimumShouldMatch('source', '80%');
//$fieldQuery->setFieldFuzziness('source', AUTO);
$boolQuery->addMust($fieldQuery);
Any help ?
Nicolas