[Groonga-commit] pgroonga/pgroonga at 0537b1d [master] Describe about query syntax

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jan 22 23:35:58 JST 2015


Kouhei Sutou	2015-01-22 23:35:58 +0900 (Thu, 22 Jan 2015)

  New Revision: 0537b1db671546af04e1096fd430f0996cce0d19
  https://github.com/pgroonga/pgroonga/commit/0537b1db671546af04e1096fd430f0996cce0d19

  Message:
    Describe about query syntax

  Modified files:
    README.md

  Modified: README.md (+16 -1)
===================================================================
--- README.md    2015-01-22 23:24:00 +0900 (70d29d1)
+++ README.md    2015-01-22 23:35:58 +0900 (4b406ce)
@@ -106,6 +106,22 @@ SELECT * FROM memos WHERE content %% '全文検索';
 -- (1 行)
 ```
 
+`キーワード1 OR キーワード2`のようにクエリー構文を使って全文検索をする
+ときは`@@`演算子を使います。
+
+```sql
+SELECT * FROM memos WHERE content @@ 'PGroonga OR PostgreSQL';
+--  id |                                  content
+-- ----+---------------------------------------------------------------------------
+--   3 | PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの拡張機能です。
+--   1 | PostgreSQLはリレーショナル・データベース管理システムです。
+-- (2 行)
+```
+
+クエリー構文の詳細は
+[Groognaのドキュメント](http://groonga.org/ja/docs/reference/grn_expr/query_syntax.html)
+を参照してください。
+
 ## アンインストール
 
 次のSQLでアンインストールできます。
@@ -130,7 +146,6 @@ DELETE FROM pg_catalog.pg_am WHERE amname = 'pgroonga';
   * 実装
     * WAL対応
     * スコアー対応
-    * クエリー構文対応(`キーワード1 OR キーワード2`のようなやつ)
     * COLLATE対応(今は必ずGroongaのNormalizerAutoを使っている)
     * トークナイザーのカスタマイズ対応(今は必ずTokenBigramを使っている)
   * ドキュメント
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index