# Elasticsearch not working

**URL:** <https://community.spicecrm.io/t/elasticsearch-not-working/46>\
**Category:** Uncategorized\
**Created:** [December 22, 2016, 12:25pm UTC](https://community.spicecrm.io/t/elasticsearch-not-working/46 "2016-12-22T12:25:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thorsten](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@thorsten](https://community.spicecrm.io/u/thorsten)\
**Post date:** [December 22, 2016, 12:25pm UTC](https://community.spicecrm.io/t/elasticsearch-not-working/46/1 "2016-12-22T12:25:50Z")

</div>

Added elasticsearch settings in config\_override.php as indicated but no joy. Its not indexing on 5.1.1.

$sugar\_config[‘fts’][‘server’] = ‘127.0.0.1’;  
$sugar\_config[‘fts’][‘port’] = 9200;  
$sugar\_config[‘fts’][‘prefix’] = ‘spicecrm’;

After setting up indexes, put and index do not seem to do anything. Search returns zero records.

Is there more to the config that this?

---

<div class="post-metadata">

**Author:** ![spicecrm](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spicecrm.io/spicecrm/32/7_2.png) [@spicecrm](https://community.spicecrm.io/u/spicecrm)\
**Post date:** [December 23, 2016, 10:27am UTC](https://community.spicecrm.io/t/elasticsearch-not-working/46/2 "2016-12-23T10:27:13Z")

</div>

Thorsten, you also need to configure the object that are to be indexed in the FTS Manager. We are currently in the process of also writing a documentation for this. It iwll be released early January.

---

<div class="post-metadata">

**Author:** ![thorsten](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@thorsten](https://community.spicecrm.io/u/thorsten)\
**Post date:** [December 27, 2016, 2:28pm UTC](https://community.spicecrm.io/t/elasticsearch-not-working/46/3 "2016-12-27T14:28:33Z")

</div>

Noted. We got it working. Required a code edit to include  
\include\SpiceFTSManager\ElasticHandler.php

change line 201 to if (!empty($url)) $cURL .= $url; in file \include\SpiceFTSManager\ElasticHandler.php and now working very smoothly.

Nice work on the Elasticsearch support!

---

<div class="post-metadata">

**Author:** ![spicecrm](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spicecrm.io/spicecrm/32/7_2.png) [@spicecrm](https://community.spicecrm.io/u/spicecrm)\
**Post date:** [December 27, 2016, 4:45pm UTC](https://community.spicecrm.io/t/elasticsearch-not-working/46/4 "2016-12-27T16:45:17Z")

</div>

Thank you Thorsten … will check this and update the file for the next release.
