<div dir="ltr"><span style="font-size:12.8px">お世話になっております。瀬戸と申します。</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Groongaのベクターカラムを対象とした全文検索について質問があります。<br></span><div><span style="font-size:12.8px">以下の設定で語彙表ができ、全文検索ができることがわかりました。</span></div><div><span style="font-size:12.8px"><br></span></div><div><div style=""><span style="font-size:12.8px">column_create Entry vector COLUMN_VECTOR ShortText</span></div><div style=""><span style="font-size:12.8px">table_create BigramTerms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigramSplitSymbolAlpha --normalizer NormalizerAuto</span></div><div style=""><span style="font-size:12.8px">column_create BigramTerms entry_vector COLUMN_INDEX|WITH_SECTION|WITH_POSITION Entry vector</span></div><div style=""><span style="font-size:12.8px">load --table Entry</span></div><div style=""><span style="font-size:12.8px">[</span></div><div style=""><span style="font-size:12.8px">{&quot;_key&quot;:1, &quot;vector&quot;:[&quot;Head First Groonga&quot;, </span><span style="font-size:12.8px">&quot;Head First Mroonga&quot;</span><span style="font-size:12.8px">]},</span></div><div style=""><span style="font-size:12.8px">{&quot;_key&quot;:2, &quot;vector&quot;:[&quot;Head First Mroonga&quot;, </span><span style="font-size:12.8px">&quot;Head First Rroonga&quot;</span><span style="font-size:12.8px">]}</span></div><div style=""><span style="font-size:12.8px">]</span></div><div style="font-size:12.8px"><br></div><div><div>&gt; select --table Entry --match_columns BigramTerms.entry_vector --query Mroonga</div><div>[[0,1455693204.72539,0.00390124320983887],[[[2],[[&quot;_id&quot;,&quot;UInt32&quot;],[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;vector&quot;,&quot;ShortText&quot;]],[1,&quot;1&quot;,[&quot;Head First Groonga&quot;,&quot;Head First Mroonga&quot;]],[2,&quot;2&quot;,[&quot;Head First Mroonga&quot;,&quot;Head First Rroonga&quot;]]]]]</div></div><div><br></div><div>しかし、Groongaのドキュメントには、「ShortText, Text, LongTextの3つの型についてはベクターとして保存したり出力したりすることはできますが、検索条件やドリルダウン条件に指定することができません。」 という記述があります。</div><div>( <a href="http://groonga.org/ja/docs/reference/types.html#limitations-about-types">http://groonga.org/ja/docs/reference/types.html#limitations-about-types</a> )</div><div><br></div><div>上記のような検索はしないほうが良いのでしょうか?</div><div>ご教示いただければ幸いです。</div><div>( Groongaは5.1.2を使っています。 )</div><div><br></div><div><br></div>-- <div class="gmail_signature"><div dir="ltr">瀬戸隆太<br>E-mail: <a href="mailto:rseto****@gmail*****" target="_blank">rseto****@gmail*****</a><br><br></div></div>
</div></div></div>