ElasticSearch tasks:
I would like to implement some some type of "reqular expressions" or "wildcard syntax" search. For example if I type "sod" it should returns items like: Irish Soda Bread, 20 oz Arm & Hammer Pure Baking Soda , 13.5 lb 7-Up Soda - 8 bottles 12 oz, 96 oz 7-Up Diet Soda, 2 lt Great Value Lower Sodium Bacon, 16 oz Jimmy Dean Lower Sodium Premium Bacon, 16 oz "S&W Kidney Beans, 50% Less Sodium", 15.25 oz
I'm thinking this type of search can be accomplished with the "Synonyms" (ngrams) as you suggested?
"I don't recommend to use regular expressions or wildcard syntax. The forte of elasticsearch is in preparing data on indexing (splitting by ngrams, filtering by score, etc). But if you want, then you should apply "not analyzed" to name field. As multi-fields for example:"
"Synonyms, reducing to root form on indexing like: "peppered" -> "pepper" (snowball), searching by part of words (ngrams). Write me if you need some of that."