# Which node executes the highligting?

**URL:** <https://discuss.elastic.co/t/which-node-executes-the-highligting/230435>\
**Category:** Elasticsearch\
**Created:** [April 29, 2020, 8:23pm UTC](https://discuss.elastic.co/t/which-node-executes-the-highligting/230435 "2020-04-29T20:23:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drs/32/8001_2.png) [@drs](https://discuss.elastic.co/u/drs)\
**Post date:** [April 29, 2020, 8:23pm UTC](https://discuss.elastic.co/t/which-node-executes-the-highligting/230435/1 "2020-04-29T20:23:44Z")

</div>

We're troubleshooting some performance issues with respect to highlighting, where certain queries that contain 10 - 40 terms take 2x - 3x as long with highlighting enabled.

We're wondering in which phase (and on which nodes) the highlighting is performed? We have three types of nodes:

- "client" nodes which have `node.master` and `node.data` set to `false`
- "data" nodes which have `node.master: false` and `node.data: true`
- "master" nodes which have `node.master: true` and `node.data: false`

All search and index requests connect to "client" nodes.

Is highlighting always preformed in the "gather" phase and if so, does that mean that in our set up, highlighting is only done on "client" nodes? Or does it depend on the highlighter that the query is using?

---

<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 27, 2020, 8:23pm UTC](https://discuss.elastic.co/t/which-node-executes-the-highligting/230435/2 "2020-05-27T20:23:49Z")

</div>

Closed on May 27, 2020, 8:23pm UTC

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