# Use include\_named\_queries\_score in search template

**URL:** <https://discuss.elastic.co/t/use-include-named-queries-score-in-search-template/374007>\
**Category:** Elastic Search\
**Created:** [February 3, 2025, 10:12am UTC](https://discuss.elastic.co/t/use-include-named-queries-score-in-search-template/374007 "2025-02-03T10:12:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisWohlert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chriswohlert/32/131792_2.png) [@ChrisWohlert](https://discuss.elastic.co/u/ChrisWohlert)\
**Post date:** [February 3, 2025, 10:12am UTC](https://discuss.elastic.co/t/use-include-named-queries-score-in-search-template/374007/1 "2025-02-03T10:12:45Z")

</div>

I'm converting normal queries to template queries, but I require named queries. I get this error when running as a template:

> parsing\_exception: Unknown key for a VALUE\_BOOLEAN in [include\_named\_queries\_score].

Is this not supported? If not, are there other options for this?  
"explain" does not seem to do what i want, since it just gives me a list of fields that were hit, but not their 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 3, 2025, 10:13am UTC](https://discuss.elastic.co/t/use-include-named-queries-score-in-search-template/374007/2 "2025-03-03T10:13:17Z")

</div>

Closed on March 3, 2025, 10:13am UTC

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