<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nuko_yokohama</author_name>
  <author_url>https://blog.hatena.ne.jp/nuko_yokohama/</author_url>
  <blog_title>日々の記録 別館</blog_title>
  <blog_url>https://nuko-yokohama.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>以前、作成したntext型の近似マッチ関数をなんとかtextsearchに組み込めないか、いろいろ試してみたが、結局かなり強引な方法で実装してみることにした。 PostgreSQL本体にも手を入れているので、対応方式としてはちょっと微妙だが・・・ 今回はHOOKポイントを新規に作成し、HOOK関数として近似マッチ関数を組み込んでみた。 HOOKの準備 textsearch内でmemcmpを使って判定している場所を、自作の近似マッチ関数(正確には類似度産出関数と、その算出結果の判定)に置き換えれば、理屈上はなんとかなると思ったので、その場所にHOOK関数をロードできるように書き換えてみる。(ba…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnuko-yokohama.hatenadiary.org%2Fentry%2F20130210%2F1360501959&quot; title=&quot;textsearchに(無理やり)近似検索を組み込んでみた - 日々の記録 別館&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>2013-02-10 22:12:39</published>
  <title>textsearchに(無理やり)近似検索を組み込んでみた</title>
  <type>rich</type>
  <url>https://nuko-yokohama.hatenadiary.org/entry/20130210/1360501959</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
