# Integrating spellcheck and partial word search with the Drupal Search API

**URL:** <https://discuss.elastic.co/t/integrating-spellcheck-and-partial-word-search-with-the-drupal-search-api/32923>\
**Category:** Elasticsearch\
**Created:** [October 24, 2015, 9:17pm UTC](https://discuss.elastic.co/t/integrating-spellcheck-and-partial-word-search-with-the-drupal-search-api/32923 "2015-10-24T21:17:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Destinationsound](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@Destinationsound](https://discuss.elastic.co/u/Destinationsound)\
**Post date:** [October 24, 2015, 9:17pm UTC](https://discuss.elastic.co/t/integrating-spellcheck-and-partial-word-search-with-the-drupal-search-api/32923/1 "2015-10-24T21:17:00Z")

</div>

I am attempting to use Elasticsearch with Drupal instead of the usual Solr because Elastic seems to be faster, takes less ram, and has a better structure overall.

My issues are with getting the more advanced features working. As of right now i am successfully using Elastic as the index with the Search API.

I would like to add Spelling correction, and partial word search results. There is a module called fuzzy search that does the trick but it doesn't integrate with the elasticsearch index. Is there a module that exists or some setting within Elastic to make this work?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 24, 2015, 9:55pm UTC](https://discuss.elastic.co/t/integrating-spellcheck-and-partial-word-search-with-the-drupal-search-api/32923/2 "2015-10-24T21:55:14Z")

</div>

Are you searching for this? [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html)

---

<div class="post-metadata">

**Author:** ![Destinationsound](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@Destinationsound](https://discuss.elastic.co/u/Destinationsound)\
**Post date:** [October 24, 2015, 10:09pm UTC](https://discuss.elastic.co/t/integrating-spellcheck-and-partial-word-search-with-the-drupal-search-api/32923/3 "2015-10-24T22:09:19Z")

</div>

Yes I think so. I'm still trying to wrap my head around elasticsearch and how it is communicating with drupal.  
If I have fuzzy querry. how will Drupal know to search on partial words?

Is this a drupal question or an elasticsearch question that i have?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 25, 2015, 1:56am UTC](https://discuss.elastic.co/t/integrating-spellcheck-and-partial-word-search-with-the-drupal-search-api/32923/4 "2015-10-25T01:56:14Z")

</div>

> [@Destinationsound](#):
>
> Is this a drupal question or an elasticsearch question that i have?

I believe it's a Drupal question?  
Did you try one of the Drupal plugins?

I'm unsure of which query type they run or if they have that fuzzy option...

---

<div class="post-metadata">

**Author:** ![giannis\_pag](https://avatars.discourse-cdn.com/v4/letter/g/43a26b/32.png) [@giannis\_pag](https://discuss.elastic.co/u/giannis_pag)\
**Post date:** [November 19, 2015, 10:51am UTC](https://discuss.elastic.co/t/integrating-spellcheck-and-partial-word-search-with-the-drupal-search-api/32923/5 "2015-11-19T10:51:19Z")

</div>

Hello

I am facing the same problem. Did you manage to find a solution for this?

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [November 19, 2015, 10:59am UTC](https://discuss.elastic.co/t/integrating-spellcheck-and-partial-word-search-with-the-drupal-search-api/32923/6 "2015-11-19T10:59:38Z")

</div>

Looking briefly at the Drupal plugin docs, the following might help you:

> **[Search API Autocomplete](https://www.drupal.org/project/search_api_autocomplete)**
>
> This module provides autocomplete functionality for Search API searches, similar to the Apache Solr autocomplete module. Autocompletion can be activated and configured for each search (all search views and pages) individually, so you have...

> **[Search API Spellcheck](https://www.drupal.org/project/search_api_spellcheck)**
>
> Spellcheck for Search API. Results show: Did you mean \[some suggestion\]?. like in Google. Supported modules Search services Module Supported Search API Solr 1.0-beta3 or higher Xapian Requires patch \[#1159508\] Search API MongoDB ...

(not a drupal expert here though, maybe better to check with the original plugin authors)

---

<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, 11:37pm UTC](https://discuss.elastic.co/t/integrating-spellcheck-and-partial-word-search-with-the-drupal-search-api/32923/7 "2017-07-05T23:37:18Z")

</div>


