# "failed to reduce search"

**URL:** <https://discuss.elastic.co/t/failed-to-reduce-search/54647>\
**Category:** Elasticsearch\
**Created:** [July 4, 2016, 12:17pm UTC](https://discuss.elastic.co/t/failed-to-reduce-search/54647 "2016-07-04T12:17:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)\
**Post date:** [July 4, 2016, 12:17pm UTC](https://discuss.elastic.co/t/failed-to-reduce-search/54647/1 "2016-07-04T12:17:05Z")

</div>

Hi,

ES 2.3.0

When starting Timelion ES throws the following error:

```
[2016-07-04 14:10:26,915][DEBUG][action.search] [Hector] failed to reduce search
Failed to execute phase [fetch], [reduce]
	at org.elasticsearch.action.search.SearchQueryThenFetchAsyncAction$2.onFailure(SearchQueryThenFetchAsyncAction.java:146)
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: script_lang not supported [expression]
	at org.elasticsearch.script.ScriptService.getScriptEngineServiceForLang(ScriptService.java:212)
[..]
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 5, 2016, 12:10am UTC](https://discuss.elastic.co/t/failed-to-reduce-search/54647/2 "2016-07-05T00:10:55Z")

</div>

> [@michbsd](#):
>
> script\_lang not supported [expression]

That is why.  
What does your query look like?

---

<div class="post-metadata">

**Author:** ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)\
**Post date:** [July 5, 2016, 4:45am UTC](https://discuss.elastic.co/t/failed-to-reduce-search/54647/3 "2016-07-05T04:45:28Z")

</div>

Hi @warkolm  
Just opening the basic Timelion interface:

.es(\*)

Michael

---

<div class="post-metadata">

**Author:** ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)\
**Post date:** [July 5, 2016, 10:33am UTC](https://discuss.elastic.co/t/failed-to-reduce-search/54647/4 "2016-07-05T10:33:58Z")

</div>

I figured out.

For some reason the FreeBSD port/package does not install any of the ES modules. I've added lang-expression and lang-groovy and the error is gone.

I have also reported the anomaly to the FreeBSD port maintainer, so this can be fixed.

Thanks,

Michael

---

<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 5, 2017, 10:38pm UTC](https://discuss.elastic.co/t/failed-to-reduce-search/54647/5 "2017-07-05T22:38:04Z")

</div>


