While setting up a new instance of SugarCRM 7.1 I reached a point in which Elasticsearch is required to continue. This is a very welcomed surprise! For those of you not familiar with full text search in SugarCRM, it offers the following benefits.
- Full text search on keywords or partial words
- Quick View previews search results with the search string highlighted
- Prioritized results are shown first for the module from which the search is performed, followed by results from other modules
- Wildcard searches
- Include a field name in searches to filter results by matches to that field only
- Show All link displays the full search results from each module in separate panels
While Googling I noticed a common theme of making installation way more difficult than it needed to be. Many tutorials have you install Elasticsearch, install a service wrapper, move files and directories here and there, etc. Overkill.
Installing it is pretty simple using the provided RPM from the Elasticsearch website.
If you are installing for SugarCRM (which is a majority of the traffic generated to this post), I recommend adding the following to the configuration file located at /etc/elasticsearch/elasticsearch.yml
Testing to make sure it works is pretty straight forward. Using curl we will make sure the service is running on the standard port of 9200.
The results returned should resemble something along the following lines.
Full Text Search Examples
See the following links for more information on how to use Elasticsearch as a whole and some more specific SugarCRM examples.