# Apply Fuzzy Search and Searching-with-without-spaces

**URL:** https://discuss.elastic.co/t/apply-fuzzy-search-and-searching-with-without-spaces/242964
**Category:** Elasticsearch
**Created:** [July 28, 2020, 6:24pm UTC](https://discuss.elastic.co/t/apply-fuzzy-search-and-searching-with-without-spaces/242964 "2020-07-28T18:24:08Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![vinodthebest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinodthebest/32/72949_2.png) [@vinodthebest](https://discuss.elastic.co/u/vinodthebest)
#### Post date: [August 10, 2020, 3:19pm UTC](https://discuss.elastic.co/t/apply-fuzzy-search-and-searching-with-without-spaces/242964/3 "2020-08-10T15:19:46Z")

</div>

@spinscale Thanks for the reply.

As you suggested I have applied the word delimiter graph and its working as expected.

As I am using Spring boot + Elasticsearch so I applied the below custom analyser to my document class and set the analyzer to the particular column.

**This is how my custom analyser JSON look like:**  
{  
"index": {  
"analysis": {  
"analyzer": {  
"word\_join\_analyzer": {  
"tokenizer": "standard",  
"filter": [  
"lowercase",  
"word\_delimiter\_graph",  
"custom\_shingle",  
"my\_char\_filter"  
]  
}  
},  
"filter": {  
"custom\_shingle": {  
"type": "shingle",  
"min\_shingle\_size": 2,  
"max\_shingle\_size": 3,  
"output\_unigrams": true  
},  
"my\_char\_filter": {  
"type": "pattern\_replace",  
"pattern": " ",  
"replacement": ""  
}  
}  
}  
}  
}

Tested with fuzzy search and searched document with and without space it all worked as expected; can you please suggest am I missing something or is there any other better approach. Thanks.

---

_[View the full topic](https://discuss.elastic.co/t/apply-fuzzy-search-and-searching-with-without-spaces/242964)._
