[groonga-dev,04703] Re: PGroongaでTokenFilterStopWordを使うと検索がヒットしない

Back to archive index
Kouhei Sutou kou****@clear*****
2018年 11月 1日 (木) 18:13:12 JST


須藤です。

In <2da92****@yahoo*****>
  "[groonga-dev,04702] PGroongaでTokenFilterStopWordを使うと検索がヒットしない" on Tue, 30 Oct 2018 20:24:35 +0900,
  川上 <hakuh****@yahoo*****> wrote:

> (初歩的な質問で申し訳ありませんが、TokenFilterStopWordの使用方法がい
> まいちわかっておらず。。)

残念ながらPGroongaではTokenFilterStopWordを使えないんです。。。

代替案は。。。pgroonga_query_expandで「.」を空文字列に置き換
えるのはどうですか?

「'.' -> []」みたいなマッピングを登録しておくイメージです。

https://pgroonga.github.io/ja/reference/functions/pgroonga-query-expand.html

試していないんですが、動くんじゃないかと思います。


-- 
須藤 功平 <kou****@clear*****>
株式会社クリアコード <https://www.clear-code.com/>

Groongaベースの全文検索システムを総合サポート:
  http://groonga.org/ja/support/
データ処理ツールの開発:
  https://www.clear-code.com/blog/2018/7/11.html



More information about the groonga-dev mailing list
Back to archive index