<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fits</author_name>
  <author_url>https://blog.hatena.ne.jp/fits/</author_url>
  <blog_title>なんとなくな Developer のメモ</blog_title>
  <blog_url>https://fits.hatenablog.com/</blog_url>
  <categories>
    <anon>Elasticsearch</anon>
    <anon>TypeScript</anon>
    <anon>Deno</anon>
  </categories>
  <description>Elasticsearch の nested を用いた検索において、inner_hits を使って検索条件に合致した nested の要素だけを抽出するようにしてみました。 今回のソースは http://github.com/fits/try_samples/tree/master/blog/20211011/ はじめに Elasticsearch では nested という型を用いる事で、入れ子構造を実現できるようになっています。 ここでは、商品毎に複数のエディションがあって、エディション毎にセールの履歴を保持しているような、2層の nested を持つサンプルデータを用意してみました。 E…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffits.hatenablog.com%2Fentry%2F2021%2F10%2F11%2F193931&quot; title=&quot; Elasticsearch で検索条件に合致した nested の要素だけを抽出 - なんとなくな Developer のメモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-11 19:39:31</published>
  <title> Elasticsearch で検索条件に合致した nested の要素だけを抽出</title>
  <type>rich</type>
  <url>https://fits.hatenablog.com/entry/2021/10/11/193931</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
