<p dir="auto"><strong>Elasticsearch version</strong>: 2.3.0</p>
<p dir="auto"><strong>Plugins installed</strong>: [head, decompound, naturalsort]</p>
<p dir="auto"><strong>JVM version</strong>: 1.8.0_03</p>
<p dir="auto"><strong>OS version</strong>: Linux Mint 18</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>: When performing a multi_match query with fuzziness enabled results with typos have higher score than exact matches. The expected behavior should give exact matches higher score than fuzzy matches.</p>
<p dir="auto"><strong>Steps to reproduce</strong>:</p>
<ol dir="auto">
<li>Create the search index with the provided index settings (<a href="https://github.com/elastic/elasticsearch/files/459299/index.txt">index.txt</a>)</li>
<li>Insert the documents with the following values for the field "username": user100, user1000, user1001, user1002, user1003, user1004</li>
<li>Execute the multi_match query (<a href="https://github.com/elastic/elasticsearch/files/459300/query.txt">query.txt</a>)</li>
<li>The first few results are "user1000", "user1001", "user1002" etc. instead "user100"</li>
</ol>
<p dir="auto"><strong>Provide logs (if relevant)</strong>: /</p>
<p dir="auto">This issue is a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14993461" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/3125" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/3125/hovercard" href="https://github.com/elastic/elasticsearch/issues/3125">#3125</a>. But somehow this issue isn't fixed yet, although the Lucene bugfix <a href="https://issues.apache.org/jira/browse/LUCENE-329" rel="nofollow">https://issues.apache.org/jira/browse/LUCENE-329</a> is marked as solved.</p>
<p dir="auto">Using this query:</p>
<p dir="auto">"query": {<br>
"fuzzy": {<br>
"_all": "excellent"<br>
}</p>
<p dir="auto">The top results are all misspellings of excellent, likely as the result of IDF.<br>
This is surely behaviour that typical end users would see as a bug?<br>
If nothing else the docs for fuzzy query should reference FuzzyLikeThis query as an alternative.</p>
<p dir="auto">The ideal of behaviour of fuzzy was discussed here:<br>
<a href="https://issues.apache.org/jira/browse/LUCENE-329" rel="nofollow">https://issues.apache.org/jira/browse/LUCENE-329</a></p>