A search on more_like_this is not out of question

I don't know why mlk can't search for fields that I have set for another tokenizer. Here are my setting and mapping
The ES version 5.4, IK, and Pinyin plug-ins are all 5.4, jvm1.8

PUT /testcar/
{
"index": {
"analysis": {
"analyzer": {
"ik_pinyin_analyzer": {
"type": "custom",
"tokenizer": "ik_smart",
"filter": [
"my_pinyin",
"word_delimiter"
]
},
"ik_analyzer": {
"type": "custom",
"tokenizer": "ik_smart",
"filter": [
"word_delimiter"
]
}
},
"filter": {
"my_pinyin": {

      "type": "pinyin",
      "keep_separate_first_letter": false,
      "keep_full_pinyin": true,
      "keep_original": true,
      "limit_first_letter_length": 16,
      "lowercase": true,
      "remove_duplicated_term": true
    }
  }
}

}
}
PUT testcar/secondcar/_mapping
{
"properties": {
"kilometer": {
"type": "float"
},
"title": {
"type": "text",
"fields": {
"ik": {
"type": "text",
"analyzer": "ik_analyzer"
},
"ik_pinyin": {
"type": "text",
"analyzer": "ik_pinyin_analyzer"
}
}
}
}
}
PUT testcar/secondcar/1
{
"title":"杜卡迪"
}
PUT testcar/secondcar/2
{
"title":"杜卡迪Monster"
}
PUT testcar/secondcar/3
{
"title":"杜卡迪Monster 798"
}
So you can search for the results
Query statement:

GET testcar/_search
{
"query": {
"more_like_this": {
"fields": [
"title.ik_pinyin"
],
"like": "杜卡迪",
"min_term_freq": 1,
"max_query_terms": 12,
"analyzer": "ik_pinyin_analyzer"
}
}
}
But that won't do
Query statement:

GET testcar/_search
{
"query": {
"more_like_this": {
"fields": [
"title.ik"
],
"like": "杜卡迪",
"min_term_freq": 1,
"max_query_terms": 12,
"analyzer": "ik_pinyin_analyzer"
}
}
}
Please God advice
Please God advice
Please God advice

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.