# Elasticsearch span\_multi query rewrite parameter getting same result for top\_terms\_n top\_terms\_boost\_n and top\_terms\_blended\_freqs\_n?

**URL:** <https://discuss.elastic.co/t/elasticsearch-span-multi-query-rewrite-parameter-getting-same-result-for-top-terms-n-top-terms-boost-n-and-top-terms-blended-freqs-n/344295>\
**Category:** Elasticsearch\
**Created:** [October 3, 2023, 8:34am UTC](https://discuss.elastic.co/t/elasticsearch-span-multi-query-rewrite-parameter-getting-same-result-for-top-terms-n-top-terms-boost-n-and-top-terms-blended-freqs-n/344295 "2023-10-03T08:34:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naman\_Mahor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/naman_mahor/32/126219_2.png) [@Naman\_Mahor](https://discuss.elastic.co/u/Naman_Mahor)\
**Post date:** [October 3, 2023, 8:34am UTC](https://discuss.elastic.co/t/elasticsearch-span-multi-query-rewrite-parameter-getting-same-result-for-top-terms-n-top-terms-boost-n-and-top-terms-blended-freqs-n/344295/1 "2023-10-03T08:34:01Z")

</div>

I m trying below query with "explain": true on million of articles. but top\_terms, top\_terms\_boost and top\_terms\_blended\_freqs returning me the same result.

```auto
"query": {
    "span_multi": {
      "match": {
        "prefix": {
          "article.title": {
            "value": "intr",
            "rewrite": "top_terms_3"
          }
        }
      }
    }
  }

```

In result I can see same top terms of all the 3 rewrite options.  
weight(spanOr([article.title:intr, article.title:intr001, article.title:intra]) in 184380) [PerFieldSimilarity]

I was trying to see the difference in all 3 rewrite options I have gone through the documentation [rewrite parameter | Elasticsearch Guide [8.10] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-term-rewrite.html)  
but still not clear to me. if you can explain these option bit more and why its not working.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 31, 2023, 8:34am UTC](https://discuss.elastic.co/t/elasticsearch-span-multi-query-rewrite-parameter-getting-same-result-for-top-terms-n-top-terms-boost-n-and-top-terms-blended-freqs-n/344295/2 "2023-10-31T08:34:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
