Ich habe 4 Dokumente in elasticsearch. Unten ist, wie es wieElasticsearch Suchabfrage funktioniert nicht
sieht ich nur abfragen Dokument versuchen, wo Wort Python
im title
erwähnt wird. Ich benutze head
Plugin und unten ist der GET-Befehl, den ich übergeben.
Anstatt jedoch das Dokument zu bekommen, wo Python
erwähnt, ich bin alle Dokumente zu bekommen.
{
"took": 8,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 4,
"max_score": 1,
"hits": [
{
"_index": "library",
"_type": "book",
"_id": "2",
"_score": 1,
"_source": {
"title": "Building machine learning systems in JAVA",
"publish_date": "July 2014",
"price": 59.9
}
}
,
{
"_index": "library",
"_type": "book",
"_id": "4",
"_score": 1,
"_source": {
"title": "Building machine learning systems in C++",
"publish_date": "July 2016",
"price": 79.9
}
}
,
{
"_index": "library",
"_type": "book",
"_id": "1",
"_score": 1,
"_source": {
"title": "Building machine learning systems in Python",
"publish_date": "July 2013",
"price": 49.9
}
}
,
{
"_index": "library",
"_type": "book",
"_id": "3",
"_score": 1,
"_source": {
"title": "Building machine learning systems in SCALA",
"publish_date": "July 2015",
"price": 69.9
}
}
]
}
}
nicht sicher, was ich bin fehlt
Diese Antwort könnte helfen: https://stackoverflow.com/questions/34795053/es-keeps-returning-every-document/34796014#34796014 – Val