Hi all:
I indexed a string "3L-LEEMARK LOGISTIC LTD." using "ik" analyzer, when i use "3l" to query the string can not be find, what`s the problem?
Here is my DSL :
"match" : {
"name" : {
"query" : "3l",
"type" : "boolean",
"operator" : "AND"
}
}
I tested the analyzer it output this :
[root@ES]# curl -XPOST 192.168.1.100:9200/test/_analyze?pretty -d '
{ "analyzer":"ik","text":"3L-LEEMARK LOGISTIC LTD."}'
{
"tokens" : [ {
"token" : "3l-leemark",
"start_offset" : 0,
"end_offset" : 10,
"type" : "LETTER",
"position" : 0
}, {
"token" : "3",
"start_offset" : 0,
"end_offset" : 1,
"type" : "ARABIC",
"position" : 1
}, {
"token" : "l",
"start_offset" : 1,
"end_offset" : 2,
"type" : "ENGLISH",
"position" : 2
}, {
"token" : "leemark",
"start_offset" : 3,
"end_offset" : 10,
"type" : "ENGLISH",
"position" : 3
}, {
"token" : "logistic",
"start_offset" : 11,
"end_offset" : 19,
"type" : "ENGLISH",
"position" : 4
}, {
"token" : "ltd.",
"start_offset" : 20,
"end_offset" : 24,
"type" : "LETTER",
"position" : 5
}, {
"token" : "ltd",
"start_offset" : 20,
"end_offset" : 23,
"type" : "ENGLISH",
"position" : 6
} ]
}