I'm struggling to find the right analyzer combination for a text field. I need all words to match and be present (although would be nice to ignore stopwords) regardless of punctuation.
For example: "a pretty dog named bart" and "a pretty dog, named bart" should both return the doc, but "a pretty dog" should not.
I thought about saving both (or multiple) phrases in the field and using field.keyword, but there could be a few various permutations of symbols and I don't think this is the smartest way.
I know you can't add an analyzer to "keyword" data type-- is there another setup that would make more sense?
currently i have it set up with
'custom_char_filter' => [
'type' => "mapping",
'mappings' => [
". => ",
", => "
]
]
'custom_analyzer' => [
'type' => 'standard',
'stopwords' => '_english_',
'char_filter' => [
'custom_char_filter'
],
],