# How to set search.highlight.term\_vector\_multi\_value

**URL:** <https://discuss.elastic.co/t/how-to-set-search-highlight-term-vector-multi-value/73567>\
**Category:** Elasticsearch\
**Created:** [February 1, 2017, 6:24pm UTC](https://discuss.elastic.co/t/how-to-set-search-highlight-term-vector-multi-value/73567 "2017-02-01T18:24:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shai\_Erera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shai_erera/32/13492_2.png) [@Shai\_Erera](https://discuss.elastic.co/u/Shai_Erera)\
**Post date:** [February 1, 2017, 6:24pm UTC](https://discuss.elastic.co/t/how-to-set-search-highlight-term-vector-multi-value/73567/1 "2017-02-01T18:24:53Z")

</div>

Hi, I want to change the value of `search.highlight.term_vector_multi_value` to `false` (so I get highlighted snippets across values of a multi-valued field) but I can't find documentation on how to change it. I tried to update the index settings, but I get `unknown setting [index.search.highlight.term_vector_multi_value]...`. Any ideas?

---

<div class="post-metadata">

**Author:** ![Shai\_Erera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shai_erera/32/13492_2.png) [@Shai\_Erera](https://discuss.elastic.co/u/Shai_Erera)\
**Post date:** [February 1, 2017, 6:28pm UTC](https://discuss.elastic.co/t/how-to-set-search-highlight-term-vector-multi-value/73567/2 "2017-02-01T18:28:44Z")

</div>

I also tried to update it via the cluster settings, but I get: `"transient setting [search.highlight.term_vector_multi_value], not dynamically updateable"` (likewise for persistent)

---

<div class="post-metadata">

**Author:** ![Shai\_Erera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shai_erera/32/13492_2.png) [@Shai\_Erera](https://discuss.elastic.co/u/Shai_Erera)\
**Post date:** [February 6, 2017, 2:11pm UTC](https://discuss.elastic.co/t/how-to-set-search-highlight-term-vector-multi-value/73567/3 "2017-02-06T14:11:47Z")

</div>

Anyone? 🙂

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [February 6, 2017, 2:37pm UTC](https://discuss.elastic.co/t/how-to-set-search-highlight-term-vector-multi-value/73567/4 "2017-02-06T14:37:33Z")

</div>

We shifted to explicitly maintaining a list of settings that are expected so we can fail loudly if someone provides any illegal setting. This requires a registry of all valid settings.

I can see the highlighter is trying to load the setting [here](https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/FastVectorHighlighter.java#L54) but I've yet to find an entry in the registry of valid [index settings](https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/common/settings/IndexScopedSettings.java#L60). Need to keep looking further but at the moment it looks like a bug

---

<div class="post-metadata">

**Author:** ![Shai\_Erera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shai_erera/32/13492_2.png) [@Shai\_Erera](https://discuss.elastic.co/u/Shai_Erera)\
**Post date:** [February 6, 2017, 2:41pm UTC](https://discuss.elastic.co/t/how-to-set-search-highlight-term-vector-multi-value/73567/5 "2017-02-06T14:41:53Z")

</div>

Thanks @Mark_Harwood. So if indeed it's a bug (I assume the bug is that the setting is not registered, and not that such setting even exists), how do you expect it will be set? As part of the "index" settings? Would appreciate if you can put here an example of how to configure it

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [February 6, 2017, 3:19pm UTC](https://discuss.elastic.co/t/how-to-set-search-highlight-term-vector-multi-value/73567/6 "2017-02-06T15:19:57Z")

</div>

I opened [https://github.com/elastic/elasticsearch/pull/22999](https://github.com/elastic/elasticsearch/pull/22999) for this. you can't set it unless it's registered.

---

<div class="post-metadata">

**Author:** ![Shai\_Erera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shai_erera/32/13492_2.png) [@Shai\_Erera](https://discuss.elastic.co/u/Shai_Erera)\
**Post date:** [February 15, 2017, 10:05pm UTC](https://discuss.elastic.co/t/how-to-set-search-highlight-term-vector-multi-value/73567/7 "2017-02-15T22:05:40Z")

</div>

Thanks @s1monw and I noticed the change also got merged. Would u mind pasting here how would I set it? Is it part of the index settings / node settings? Is it something I should set before the server starts? Thanks!

---

<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 15, 2017, 10:06pm UTC](https://discuss.elastic.co/t/how-to-set-search-highlight-term-vector-multi-value/73567/8 "2017-03-15T22:06:15Z")

</div>

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