<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kazuhira</author_name>
  <author_url>https://blog.hatena.ne.jp/Kazuhira/</author_url>
  <blog_title>CLOVER🍀</blog_title>
  <blog_url>https://kazuhira-r.hatenablog.com/</blog_url>
  <categories>
    <anon>Lucene</anon>
    <anon>Solr</anon>
  </categories>
  <description>たまたまスキーマ定義がそうなってて、ちょっとハマったのでメモ。Apache Solrのユニークキーで使用するフィールドですが、この値が重複しているはずなのにドキュメントがユニークにならなくて困ったという話です。schema.xmlは、以下とします。 &lt;field name=&quot;id&quot; type=&quot;text_ja&quot; indexed=&quot;true&quot; stored=&quot;true&quot; required=&quot;true&quot; multiValued=&quot;false&quot; /&gt; &lt;uniqueKey&gt;id&lt;/uniqueKey&gt; 「_version_」などは省略します。「text_ja」はKuromojiを使った形態素解析フィ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazuhira-r.hatenablog.com%2Fentry%2F20151225%2F1451061962&quot; title=&quot;Apache Solrで、ユニークキーをAnalyzeしているとユニークにならない時があるという話 - CLOVER🍀&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>2015-12-25 01:46:02</published>
  <title>Apache Solrで、ユニークキーをAnalyzeしているとユニークにならない時があるという話</title>
  <type>rich</type>
  <url>https://kazuhira-r.hatenablog.com/entry/20151225/1451061962</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
