Hey All,
I am trying to setup a pattern analyzer for indexes, but something
just isn't working.
Here is what I have tried in our elasticsearch.json
"pipeDelim":{
"type": "pattern",
"stopwords": "none",
"flags": "DOTALL",
"lowercase":true,
"pattern": "\|"
},
and
"pipeDelimTest":{
"type":"custom",
"tokenizer":"pattern",
"pattern":"\|",
"filter":["lowercase"]
},
and I pass in the following to a doc that has one of these analyzers
Kobe Bryant|Lamar Odom
doing a search for
Kobe Bryant (term query)
nothing comes back from a search
if I type
bryant (term query)
then the document comes back
if I type
kobe bryant (term query)
nothing comes back.
so, it seems like it is just doing the lower casing, but not the pipe
delim to separate tokens and then lower casing.
Any ideas on how to setup this up so it delimits on the pipe
character, and then lower cases the tokens?
Thanks,
Scott