<p>Please correct me if I am making an incorrect assumption. From your example, it looks like you're passing multiple tags to the search query, and by <em>greatest coincidence</em> you mean that you want the Entries that have the most matching tags that are part of your search, to appear higher in the results than Entries that may just have a single matching tag.</p>

<p>I don't believe this is possible without an additional plugin that helps with modifying the scoring and order of the search results.</p>

CC BY-SA 3.0
2015-08-31T16:25:17.703Z
Yes, I mean sort where the greatest tag match, a great pity that it is impossible
Vitaliy  Badalov
CC BY-SA 3.0
2015-08-23T05:47:52.653Z
2015-08-23T05:47:52.653Z
Ben Parizek
<p>I have code</p>

<pre><code>    {% set tags = entry.q_tags %}
    {% set entries = craft.entries.relatedTo(tags).order('score').find() %}
    {% for item in entries %}
      {% if item.id != entry.id %}
         .......
      {% endif %}
    {% endfor %}
</code></pre>

<p>But how to do that similar entries displayed order with the greatest coincidence tags?
Thank you. Sorry for my english</p>

<entries><tags>
Similar entries with the greatest coincidence tags
# Similar entries with the greatest coincidence tags

(Asked by: username_0 on 2014-12-22)

I have code
    {% set tags = entry.q_tags %}
    {% set entries = craft.entries.relatedTo(tags).order('score').find() %}
    {% for item in entries %}
      {% if item.id != entry.id %}
         .......
      {% endif %}
    {% endfor %}

But how to do that similar entries displayed order with the greatest coincidence tags?
Thank you. Sorry for my english

**Tags:** entries, tags

---

## 1 answers

### Answer by username_1 on 2015-08-23. Score: 2

Please correct me if I am making an incorrect assumption. From your example, it looks like you're passing multiple tags to the search query, and by *greatest coincidence* you mean that you want the Entries that have the most matching tags that are part of your search, to appear higher in the results than Entries that may just have a single matching tag.

I don't believe this is possible without an additional plugin that helps with modifying the scoring and order of the search results.

> **Comments:**
> **username_0**: Yes, I mean sort where the greatest tag match, a great pity that it is impossible  

---

