# Splitting terms for constant\_score

**URL:** <https://discuss.elastic.co/t/splitting-terms-for-constant-score/1193>\
**Category:** Elasticsearch\
**Created:** [May 22, 2015, 8:35pm UTC](https://discuss.elastic.co/t/splitting-terms-for-constant-score/1193 "2015-05-22T20:35:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abroekhof](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abroekhof/32/44782_2.png) [@abroekhof](https://discuss.elastic.co/u/abroekhof)\
**Post date:** [May 22, 2015, 8:35pm UTC](https://discuss.elastic.co/t/splitting-terms-for-constant-score/1193/1 "2015-05-22T20:35:18Z")

</div>

I think my use is a good candidate for the constant\_score query—I'm trying to match searched to short (1-10) term product strings, where TF and IDF don't really matter. The [Definitive guide](https://www.elastic.co/guide/en/elasticsearch/guide/master/ignoring-tfidf.html) on this subject recommends splitting the query into constant\_score queries, but doesn't explain how to do this, if it's possible to do it automatically.

How do I get my search phrase to split into the individual constant\_score queries?

---

<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:** [July 6, 2017, 12:12am UTC](https://discuss.elastic.co/t/splitting-terms-for-constant-score/1193/2 "2017-07-06T00:12:18Z")

</div>


