# Calculate query weight. Is it possible?

**URL:** <https://discuss.elastic.co/t/calculate-query-weight-is-it-possible/270428>\
**Category:** Elasticsearch\
**Created:** [April 16, 2021, 10:00pm UTC](https://discuss.elastic.co/t/calculate-query-weight-is-it-possible/270428 "2021-04-16T22:00:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [April 16, 2021, 10:00pm UTC](https://discuss.elastic.co/t/calculate-query-weight-is-it-possible/270428/1 "2021-04-16T22:00:19Z")

</div>

Hey there, is it possible to calculate the query weight? I mean, I would like to start to optimize how I use use \_search and the nested query object. So, I would like to test different approach and use different query to get the same result.  
Is there any idea? Any suggestion or any parameters to be considered?

---

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [April 17, 2021, 9:24pm UTC](https://discuss.elastic.co/t/calculate-query-weight-is-it-possible/270428/2 "2021-04-17T21:24:43Z")

</div>

Is it took time the first parameter to be considered? Is there any preference regarding filter?

---

<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:** [May 15, 2021, 9:25pm UTC](https://discuss.elastic.co/t/calculate-query-weight-is-it-possible/270428/3 "2021-05-15T21:25:28Z")

</div>

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