Configure query analyzer or create custom to solve issue with dash (-) in query?

Vote:
 

Hey,

Does anyone know if it's possible to create a custom query analyzer or configure one of the "synonym" analyzers? I have an issue where free text query containing dash (-) is split up into two different terms. I don't want that behavior when searching for a specific type.

#280582
Edited, May 19, 2022 13:00
Vote:
 

@Mattias did you find a way to override or modify the synonym analyzer?

#281811
Jun 13, 2022 23:55
Vote:
 

Hi Mattias! I believe the main issue is the tokenizer/analyzer in the backend which you can't change but I think there might be a solution to your problem. If you make use of Elastic Search match phrase I believe you will still get the perfect match. This is something I've done in Find.Toolbox https://github.com/episerver/EPiServer.Labs.Find.Toolbox

#286358
Aug 30, 2022 9:10
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.