好的,到目前为止,我还无法弄清楚这一点。希望有人能提供一些见解。
鉴于以下文件,我将如何搜索视频标题中包含“测试”的视频的所有文件?我正在使用 HTTP API。 (基本上,您如何使用弹性搜索来搜索嵌套对象?我知道那里肯定有文档,但我真的找不到任何文档。)
[{
id:4635,
description:"This is a test description",
author:"John",
author_id:51421,
video: {
title:"This is a test title for a video",
description:"This is my video description",
url:"/url_of_video"
}
},
{
id:4636,
description:"This is a test description 2",
author:"John",
author_id:51421,
video: {
title:"This is an example title for a video",
description:"This is my video description2",
url:"/url_of_video2"
}
},
{
id:4637,
description:"This is a test description3",
author:"John",
author_id:51421,
video: {
title:"This is a test title for a video3",
description:"This is my video description3",
url:"/url_of_video3"
}
}]