<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kyagi</author_name>
  <author_url>https://blog.hatena.ne.jp/kyagi/</author_url>
  <blog_title>blog.ayakumo.net</blog_title>
  <blog_url>https://blog.ayakumo.net/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>rails</anon>
  </categories>
  <description>「空気を読む」検索 Rails の検索には Ransack が重用されます。Ransack では基本的にモデルの単一カラムに対して cont(contain) や eq(equal) といった条件で検索が可能です。この場合、ユーザーがひとつの用語で複数のカラムを検索したい場合、別々の入力フォームで複数回の入力を求めることになります。ここで、ひとつの検索語で複数カラムを一気に実行できたらどうでしょうか。これはいわゆる「空気を読む」検索と言えるかもしれません。 ゲームでの例を挙げます。例えば「龍飛」という入力をして検索をするユーザーはアイテム名「龍飛剣」を探しているのかもしれませんし、スキル名「龍…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ayakumo.net%2Fentry%2F2022%2F06%2F11%2F013532&quot; title=&quot;ひとつの入力語に対して複数カラムを対象にして検索を行い結果をまとめる - blog.ayakumo.net&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>2022-06-11 01:35:00</published>
  <title>ひとつの入力語に対して複数カラムを対象にして検索を行い結果をまとめる</title>
  <type>rich</type>
  <url>https://blog.ayakumo.net/entry/2022/06/11/013532</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
