I am using Elasticsearch 7.4 and Spring boot 2.3.1 (Spring JPA Elasticsearch) would like to get the same results if the words have space or without space and would like to perform fuzzy search also for the same property.
Example: Some of the documents have a company name as Nike and some documents have the company name as Orbital Sciences or AirBus.
Expected Result:
- Even if the user searches the: OrbitalSciences; he should get the result as Orbital Sciences.
- If the user searches Air Bus he should get the result as AirBus.
- And finally if the user searches the: Mike or ike he should get the result as Nike.
I am able to get a fuzzy search working without applying the custom space analyzer; yes I do know that for searching with and without space, we have to create a custom analyzer. But as when I am applying custom analyzer with and without space search on the document for the company name property the fuzzy search stops working for company name because in background index is created as per the custom analyzer.
I am new to Elasticsearch; so my question is how can we apply Fuzzy and with-without-spaces searching on the same property for a document.
Thank you.