Elastic search Ngram search high latency


(natali) #1

Hi,
Im using a few analyzers to query elastic_search. until now we used the dbl_metaphone analyzer and the keyword analyzer.
Now we want to use the 3gram_tokenizer and the query search takes 4 times more time then searching on dbl_metaphone or the keyword.

does it make sense it takes much longer to query it?
is there a way to make it faster?

here in the index settings:

"settings": {
"index": {
"number_of_shards": "5",
"provided_name": "test_3grams_1410",
"creation_date": "1539501438067",
"analysis": {
"filter": {
"dbl_metaphone": {
"type": "phonetic",
"encoder": "double_metaphone"
},
"unlimited_dbl_metaphone": {
"max_code_len": "1000",
"type": "phonetic",
"encoder": "doublemetaphone"
}
},
"analyzer": {
"3gram": {
"tokenizer": "3gram_tokenizer"
},
"3gram_phonetic": {
"filter": ["unlimited_dbl_metaphone"],
"tokenizer": "3gram_tokenizer"
},
"dbl_metaphone": {
"filter": ["dbl_metaphone"],
"tokenizer": "standard"
}
},
"tokenizer": {
"3gram_tokenizer": {
"token_chars": [],
"min_gram": "3",
"type": "ngram",
"max_gram": "3"
}
}
},
"number_of_replicas": "1",
"uuid": "Qb_sMJJ2RAShYehyCb4PWw",
"version": {
"created": "6010199"
}
}
}

Thanks,
Natali


(system) #2

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