Hello there!
I have a string field which uses for autocompletion functionality. And wondering how to implement Autocomplete for values that contains special characters/punctuation, e.g. > 1’ 1/4" - 8". Should I replace or somehow escape these characters ( ', /, " ) when making an autocomplete query? Where I can find information how does the analyzer parse those characters?
Hi @Nikita_Prokopev and thank you for sharing the above query and sample documents.
Here is what I tried based on the sample document shared, the lucene.whitespace analyzer used in my example divides text into searchable terms wherever it finds a whitespace character. It leaves all terms in their original case. You may need to adjust your index accordingly & test thoroughly to verify if the following suits your use cases.
This seems to be a different question from the thread.
Could you open a new thread with the relevant information to help you with the possible solution.