@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.