<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>matsnow</author_name>
  <author_url>https://blog.hatena.ne.jp/matsnow/</author_url>
  <blog_title>Engineer's Way</blog_title>
  <blog_url>https://matsnow.hatenablog.com/</blog_url>
  <categories>
    <anon>ElasticSearch</anon>
    <anon>データベース</anon>
  </categories>
  <description>前職の時、AWSのElasticSearchService (Ver5.3) を使っていましたが、日本語どころか英語でもあまり情報がなかったりするので苦労しました。 RDBでよくある、テーブル結合して検索ということがしたかったのですが、手間取ったので方法を残しておきます。 ElasticSearchで3世代ドキュメント構造を持ったindexを作る たとえば、「商品カテゴリ - 商品 - 商品のレビュアー」みたいに、それぞれのデータに1:nの関係性を持たせたい場合、RDBなら外部キーを使ってJOINすればOKです。 ElasticSearchで、そういった構造を表現したい場合、_typeを使いま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmatsnow.hatenablog.com%2Fentry%2Felasticsearch%2Fsearch-by-child&quot; title=&quot;ElasticSearchで親-子-孫の3世代ドキュメントを作って、子や孫の内容で検索する - Engineer&amp;#39;s Way&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/matsnow/20171204/20171204030054.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-06 07:00:00</published>
  <title>ElasticSearchで親-子-孫の3世代ドキュメントを作って、子や孫の内容で検索する</title>
  <type>rich</type>
  <url>https://matsnow.hatenablog.com/entry/elasticsearch/search-by-child</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
