This is example data.
POST coding/_bulk
{"index":{"_id":"1"}}
{"language":"xyz_foo@abc"}
I confirmed that the defulat analyzer
distinguishes @
but not the _
(underscore)symbol through _termvectors.
GET coding/_termvectors/1?fields=language
{
"_index" : "coding",
...
"term_vectors" : {
"language" : {
...
"terms" : {
"abc" : {
...
},
"xyz_foo" : {
...
}
}
}
}
}
The default analyzer
didn't distinguish between the _
(underscore)symbols, so I couldn't search with xyz
or foo
.
How do I create an analyzer that can search up to xyz
or foo
and abc
by separating the _
(underscore)symbol?