これまでのところ、これを把握することはできませんでした。誰かが洞察力を提供できると願っています。弾性検索でネストされたオブジェクトを検索する方法
以下のドキュメントがあると、ビデオタイトルに「テスト」のあるビデオを含むすべてのドキュメントを検索するにはどうすればよいですか?私は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"
}
}]
必ずしもビデオをネストする必要はありません。下記のhttp://www.elasticsearch.org/blog/2010/02/12/yourdatayoursearch.htmlと私の答えをご覧ください。 – dira
更新されたリンクは次のとおりです。http://www.elasticsearch.org/blog/your-data-your-search/ – swatkins
このブログの記事は本当に役立ちました。http://www.elasticsearch.org/blog/managing -relations-inside-elasticsearch/ – Quin