GET candidates1/candidate/_search
{
"fields": ["contactInfo.emails.main"],
"query": {
"bool": {
"must": [
{
"match": {
"contactInfo.emails.main": "com"
}
}
]
}
}
}
GET candidates1/candidate/_search
{
"size": 5,
"fields": [
"contactInfo.emails.main"
],
"query": {
"match": {
"contactInfo.emails.main": "com"
}
}
}
嗨, 當我使用我得到像[「[email protected]」,'arelysf456 @ gmai1結果上面的查詢.com','[email protected]']但我沒有收到['[email protected]','[email protected]','[email protected]']鬆緊搜索郵件搜索匹配COM
但是,當我使用查詢匹配「gmail.com」,我得到的結果有gmail.com
所以我的問題是,當我在第一個查詢中使用「com」時,我期待包含gmail.com的結果作爲「com」存在於gmail.com中。但是,這並沒有發生
注意:我們有近2百萬emailid,其中大部分是gmail.com,yahoo.com或hotmail,但只有少數是其他類型。