<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>YarmUI</author_name>
  <author_url>https://blog.hatena.ne.jp/YarmUI/</author_url>
  <blog_title>YarmUI's blog</blog_title>
  <blog_url>https://kfka.hatenablog.jp/</blog_url>
  <categories>
    <anon>node.js</anon>
    <anon>Redis</anon>
  </categories>
  <description>台風一過で天気が良いのでnodeとRedisのSETを転置インデックスに使った全文検索を作った. wikipediaのタイトル一覧(約100万件)をtri-gramで分解しRedisに突っ込んだ結果，約800万件の転置インデックスを挿入するのにおよそ3分，サイズは700MB程度だった． 同じようなことをmongodbでもできるが挿入速度ではRedisが有利だろう．転置インデックス作成 const redis = require('redis'); const byline = require('byline'); const fs = require('fs'); const client =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkfka.hatenablog.jp%2Fentry%2F20120930%2F1348988644&quot; title=&quot;Redisで全文検索 - YarmUI&amp;#39;s blog&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>2012-09-30 16:04:04</published>
  <title>Redisで全文検索</title>
  <type>rich</type>
  <url>https://kfka.hatenablog.jp/entry/20120930/1348988644</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
