Elasticsearch version: 1.5.2
Plugin jar elasticsearch-analysis-phonetic-2.5.0.jar (properly installed through command line)
JVM version: 1.8.0_66
OS version: Windows 7 Professional
Description of the problem including expected versus actual behavior:
Hi.
I go through documentation
https://www.elastic.co/guide/en/elasticsearch/guide/1.x/phonetic-matching.html
The configuration requests were fine.
All the diagnosis requests with /my_index/_analyze?analyzer=dbl_metaphone for
- John Smith
- Jonnie Smythe
- Jahnnie Smeeth
return the same list of tokens: JN, AN, SM0, XMT
For example
POST http://127.0.0.1:9201/my_index/_analyze?analyzer=dbl_metaphone
Content-Type: application/json
Jahnnie Smeeth
-- response --
200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 336
{"tokens":[{"token":"JN","start_offset":0,"end_offset":7,"type":"","position":1},{"token":"AN","start_offset":0,"end_offset":7,"type":"","position":1},{"token":"SM0","start_offset":8,"end_offset":14,"type":"","position":2},{"token":"XMT","start_offset":8,"end_offset":14,"type":"","position":2}]}
All the search requests with /my_index/my_type/_search and above names returns no results.
POST http://127.0.0.1:9201/my_index/my_type/_search
Content-Type: application/json
{
"query": {
"match": {
"name.phonetic": {
"query": "Jahnnie Smeeth",
"operator": "and"
}
}
}
}
-- response --
200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 123
{"took":94,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}
No errors during launch and working in the logs.
I am not sure that it's a bug so decided to start from discussion.
Am I miss something?
Appreciate your help.
P.S.
Notice that my port is 9201, your may be 9200. I also use POST http requests instead of GET by documentation.