# Payload score for block-max WAND

**URL:** <https://discuss.elastic.co/t/payload-score-for-block-max-wand/262790>\
**Category:** Elasticsearch\
**Created:** [February 1, 2021, 6:34am UTC](https://discuss.elastic.co/t/payload-score-for-block-max-wand/262790 "2021-02-01T06:34:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert-007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robert-007/32/83187_2.png) [@robert-007](https://discuss.elastic.co/u/robert-007)\
**Post date:** [February 1, 2021, 6:34am UTC](https://discuss.elastic.co/t/payload-score-for-block-max-wand/262790/1 "2021-02-01T06:34:07Z")

</div>

```
As I read the papper "[Optimizing Top-k Document Retrieval Strategies for

```

Block-Max Indexes]([http://engineering.nyu.edu/~suel/papers/bmm.pdf](http://engineering.nyu.edu/~suel/papers/bmm.pdf))", i see that each block of posting list stores one max score using to skip the block whose max score is less than then θ value，and max score value is based on term frequency and document length.  
My question is that can we use the score stored in payload as max score? I have a slow query as follows：

```auto
GET my_index/_search
{
  "query": {
    "bool": {
      "must": [
        {
          "terms": {
            "tags": [
              "101",
              "102",
              "103",
              ...
            ]
          }
        }
      ]
    }
  }
}

```

Hundreds of terms in tags list , this is very slow , because es need to merge hundreds of posting list , my idea is to store a quality score in payload , and then use the quality score as max score of block, so this maybe can skip lots of block whose quality score not in Top-K hits  
Does this idea es support？

OR can block max wand algorithm use the value of [Index Sorting](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/index-modules-index-sorting.html#early-terminate) field as score?

---

<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:** [March 1, 2021, 6:34am UTC](https://discuss.elastic.co/t/payload-score-for-block-max-wand/262790/2 "2021-03-01T06:34:50Z")

</div>

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