Hi Team,
I've indexed a content in to my elastic search v5.6.0 in local through json.
Now I can query this using POST http://localhost:9200/content/_search
with empty body, and the search returns all results indexed in my local.
{
"took": 87,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 1,
"hits": [
{
"_index": "content",
"_type": "content",
"_id": "5a9d1992b2067a8a52da23d2",
"_score": 1,
"_source": {
"IndexableContent": {
"id": "5a9d1992b2067a8a52da23d2",
"globalServiceId": "null",
"contentType": "movie",
"title": "Kathikeya",
"description": "The story forms the rest of the story.",
"language": "[tamil]",
"timeAdded": "null",
"views": "0",
"releaseDate": "2014-09-15T00:00:00.000Z",
"persons": "{Producer=[5a9d197bb2067a8a52da23d1], Actor=[5a9d197bb2067a8a52da23ce, 5a9d197bb2067a8a52da23cf], Director=[5a9d197bb2067a8a52da23d0]}",
"personsFullNames": "[Swathi, Nikhil, Chandu M, VenkatSrinivas]",
"genres": "[5a9d18b5b2067a8a52da23cd]",
"genresFullNames": "[thriller]",
"contentTags": "[]",
"siblingOrder": "0.0",
"summary": "A medical student, Karthikeya, visits the temple of Kumara Swami in Subramanyapuram to unveil the mystery behind its closure.",
"searchcontent": "[]",
"keyword": "null",
"weight": "null"
}
}
}
]
}
}
Now I use following bool query
POST http://localhost:9200/content/_search
{
"query": {
"bool": {
"should": [
{
"term": {
"title": "ka"
}
}
]
}
}
}
And it returns no results. Wanna know what the query should be.
{"took":4,"timed_out":false,"_shards":{"total":5,"successful":5,"skipped":0,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}
Thank you,
Regards,
SatyaRaj