<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fullmated</author_name>
  <author_url>https://blog.hatena.ne.jp/fullmated/</author_url>
  <blog_title>Legalscapeテックブログ</blog_title>
  <blog_url>https://tech.legalscape.co.jp/</blog_url>
  <categories>
    <anon>Elasticsearch</anon>
  </categories>
  <description>こんにちは。最近は技術負債解消や開発効率向上に携わっているエンジニアの古矢です。 弊社ではキーワード検索エンジンに Elasticsearch を使用しており、システム内部では様々なクエリが発行されています。 Elasticsearch には Painless という Java VM ベースの DSL があり、Painless スクリプトを書くことによって柔軟なクエリを書くことができます。 本記事では、公式で推奨されている使い方だけでなく、あえて非効率になりやすい書き方を試すことで、どの程度パフォーマンスに差が出るのかを検証してみました。 実験 今回は以下を確かめることを目的とします。 Pai…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.legalscape.co.jp%2Fentry%2F2025%2F12%2F19%2F180216&quot; title=&quot;Elasticsearch Painless スクリプトを動かす際の注意点について確かめてみた - Legalscapeテックブログ&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>2025-12-19 18:02:16</published>
  <title>Elasticsearch Painless スクリプトを動かす際の注意点について確かめてみた</title>
  <type>rich</type>
  <url>https://tech.legalscape.co.jp/entry/2025/12/19/180216</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
