Hi guys,
My problem succinctly
POST tweet/test
{
"name": "Stefan",
"address": ["Chine street",
"England country"]
}
POST tweet/test
{
"name": "Heroku",
"address": ["bla bla street",
"China country"]
}
GET tweet/_search
{
"query": {
"query_string": {
"default_field": "address",
"query": "China country",
"default_operator": "AND"
}
}
}
Response
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 0.15342641,
"hits": [
{
"_index": "tweet",
"_type": "test",
"_id": "AUzM7tcIO39NAgkFq0jl",
"_score": 0.15342641,
"_source": {
"name": "Heroku",
"address": [
"China street",
"Englang country"
]
}
},
{
"_index": "tweet",
"_type": "test",
"_id": "AUzM7w2kO39NAgkFq0jm",
"_score": 0.13424811,
"_source": {
"name": "Heroku",
"address": [
"bla bla street",
"China country"
]
}
}
]
}
}
Nasıl haritayı değiştirmeden yalnızca ikinci belge dönmek için alabilirim?
Best.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/647e9c10-f42c-42be-b15c-4603cb8d4c22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.