I've problem with parsing pipe "|" character in elastic. When a record have any special characters no result data.
{
"query": {
"bool": {
"must": [
{
"term": {
"username": "john|doe@group.net"
}
}
],
"must_not": [],
"should": []
}
},
Only when I get rid of second element including "|" , when "username": "john" , the results is okay.
dadoonet
(David Pilato)
April 22, 2017, 2:30pm
2
Depends on the analyzer you are using here.
I tried by uax_url_email, but no working
dadoonet
(David Pilato)
April 22, 2017, 9:41pm
4
Try with keyword analyzer
I've Es 2.4, it tourned out put"type":"phrase"
, now its ok. Thanks
system
(system)
Closed
May 21, 2017, 3:59pm
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.