[groonga-dev,01224] Re: [ANN] mroonga 3.01

Back to archive index

Kouhei Sutou kou****@clear*****
2013年 3月 1日 (金) 00:18:21 JST


須藤です。

In <512F7****@fdiar*****>
  "[groonga-dev,01223] Re: [ANN] mroonga 3.01" on Thu, 28 Feb 2013 16:00:06 +0100,
  Kazuhiko <kazuh****@fdiar*****> wrote:

>> ○ utf8_unicode_ci, utf8m4_unicode_ciのサポート
>> 
>> 3.00リリースの目玉でもあった、MySQL互換の照合順序ですが、
>> 今回のリリースでは utf8_unicode_ciと utf8m4_unicode_ciも追加でサポートしました。
> 
> 素晴らしい!!! ありがとうございます!!!

おまたせしました!

> 1) register normalizers/mysql が失敗
> 
> /usr/local以外の場所にインストールしているのですが、
> https://github.com/groonga/groonga-normalizer-mysql
> を参考に register しようとしたら、こうなりました。
> 
> $ groonga
>> register normalizers/mysql
> [[-3,1362062228.13769,0.000502347946166992,"cannot open shared object
> file: No such file or directory:
> </usr/local/lib/groonga/plugins/normalizers/mysql.so> and
> </usr/loca",[["grn_plugin_register_by_path","plugin.c",332]]],false]
>> register /xxx/groonga/lib/groonga/plugins/normalizers/mysql
> groonga: symbol lookup error:
> /xxx/groonga/lib/groonga/plugins/normalizers/mysql.so: undefined symbol:
> grn_normalizer_register
> 
> インストールは、それぞれgroongaが
> ./configure --prefix=/xxx/groonga
> で、groonga-normalizer-mysqlは
> PKG_CONFIG_PATH=/xxx/groonga/lib/pkgconfig ./configure --prefix=/xxx/groonga
> です。
> 
> $ ldd normalizers/mysql.so | grep groonga
>         libgroonga.so.0 => /xxx/groonga/lib/libgroonga.so.0
> (0x00007fb10fba7000)
> 
> で、RPATHは大丈夫そうに見えます。

うーん。which groongaが/usr/local/bin/groongaになったりして
いませんか?

registerのときに/usr/local/...を補完しているのは
groonga-normalizer-mysqlじゃなくてgroonga本体の方なので、違
う/xxx/groongaじゃない方のgroongaを使っている気配を感じます。

> 2) mroongaから使う際に、何かセットアップする必要ありますか?
> 
> groongaから使う際の'register normalizers/mysql'みたいに、mroongaだけで使
> う際にも何かする必要がありますか?

ないです!
自動的にregister normalizers/mysqlしています。

> 3) 実際にnormalizerが効いているかどうか、mysqlから確認する方法はありますか?
> 
> とりあえず、検索を試したらこんな感じですが、これだとnormalizerが効いてい
> ませんよね?
> 
>> select * from full_text where match (SearchableText) against ('faure');
> Empty set (0.01 sec)
> 
>> select * from full_text where match (SearchableText) against ('faur?');
> +------+------------------+
> | uid  | SearchableText   |
> +------+------------------+
> | 2700 | Gabriel Faur?    |
> +------+------------------+
> 1 row in set (0.00 sec)

む。utf8_unicode_ciだとfaureでfaur?もマッチするんでしたっけ?
eと?は同一視されない気がします。。。
(メールだから文字が変わっている。。。?)

-- 
須藤 功平 <kou****@clear*****>
株式会社クリアコード <http://www.clear-code.com/> (03-6231-7270)

groongaサポート:
  http://groonga.org/ja/support/
パッチ採用はじめました:
  http://www.clear-code.com/recruitment/
コミットへのコメントサービスはじめました:
  http://www.clear-code.com/services/commit-comment.html




groonga-dev メーリングリストの案内
Back to archive index