Hi All,
I have a next search request:
GET /my_index/my_type/_search
{
"query": {
"bool": {
"filter": [{
"bool": {
"should": [{
"bool": {
"must": [{
"bool": {
"should": [
{"terms": {"siteid": ["1","16"]}},
{"prefix": {"firstname": {"value": "sergey"}}},
{"prefix": {"lastname": {"value": "sergey"}}}
]
}
}],
"should": [
{"prefix": {"firstsecond": {"value": "sergey"}}},
{"prefix": {"firstsecond": {"value": "pavlichenko"}}}
]
}
}]
}
}]
}
}
}
it doesn't find existing item, but when I execute next request:
GET /my_index/_search?q=id:178
I see that the item, is exist:
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1.0,
"hits": [{
"_index": "dbcustomers3",
"_type": "dbcustomers",
"_id": "178",
"_score": 1.0,
"_source": {
"id": 178,
"updatedate": "2009-08-02T15:23:32.207",
"email": "smaltsin222222@mail.comss",
"merchantcustomeremail": null,
"firstname": "maltsin123",
"lastname": "sergey123",
"login": "maltsin",
"dateofbirth": "1971-01-01T00:00:00",
"phone": "1234567890",
"firstsecond": null,
"md5password": null,
"cardholders": "",
"affmoenybookersemail": null,
"moneybookerswithdrawemail": null,
"siteid": 1,
"lastloginip": "1.1.0.135"
}
}
]
}
}