[groonga-dev,04050] pgroongaの@@演算子が効かない

アーカイブの一覧に戻る

清河 宗一朗 iftha****@yahoo*****
2016年 6月 7日 (火) 13:56:45 JST


お世話になります。清河です。
度々すみません。今度はpgroongaの@@演算子が効かず困っています。
現在、下記の状況です。%%演算子は効きますが、@@演算子が効いていないようです。
(Windows10、pgroonga1.10.0)
また、idx_t_tempインデックスを作成しなくても、下記SQLが動作したのですが、
そういうものなのでしょうか。
 select * from t_temp where for_search %% 'pgroonga';
 select * from t_temp where for_search %% 'postgres';
=> \d t_temp
   テーブル "t_temp"
     列     |   型    |  修飾語
------------+---------+----------
 id         | integer | not null
 for_search | text    | not null
インデックス:
    "idx_t_temp" pgroonga (for_search)

=> select * from t_temp;
 id |                                      for_search
----+---------------------------------------------------------------------------------------
  1 | PGroonga(ぴーじーるんが)はインデックスとしてGroongaを使うPostgreSQLの拡張機能です。
  2 | PostgreSQLはアルファベットと数値だけを使った言語の全文検索だけをサポートしています。
  3 | PostgreSQLはBSDライセンス、MITライセンスと似たライセンスです。
(3 行)

=> select * from t_temp where for_search %% 'pgroonga';
 id |                                      for_search
----+---------------------------------------------------------------------------------------
  1 | PGroonga(ぴーじーるんが)はインデックスとしてGroongaを使うPostgreSQLの拡張機能です。
(1 行)

=> select * from t_temp where for_search %% 'postgres';
 id |                                      for_search
----+---------------------------------------------------------------------------------------
  1 | PGroonga(ぴーじーるんが)はインデックスとしてGroongaを使うPostgreSQLの拡張機能です。
  2 | PostgreSQLはアルファベットと数値だけを使った言語の全文検索だけをサポートしています。
  3 | PostgreSQLはBSDライセンス、MITライセンスと似たライセンスです。
(3 行)

=> select * from t_temp where for_search @@ 'pgroonga OR postgres';
 id | for_search
----+------------
(0 行)
宜しくお願い致します。
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
ダウンロード 



groonga-dev メーリングリストの案内
アーカイブの一覧に戻る