[Groonga-commit] pgroonga/pgroonga.github.io at c3548f2 [master] contain-term-v2 ja: translate

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jun 10 09:11:28 JST 2017


Kouhei Sutou	2017-06-10 09:11:28 +0900 (Sat, 10 Jun 2017)

  New Revision: c3548f2d19eb85e257e95ab052f9a611189f77d4
  https://github.com/pgroonga/pgroonga.github.io/commit/c3548f2d19eb85e257e95ab052f9a611189f77d4

  Message:
    contain-term-v2 ja: translate

  Added files:
    _po/ja/reference/operators/contain-term-v2.po
    ja/reference/operators/contain-term-v2.md

  Added: _po/ja/reference/operators/contain-term-v2.po (+106 -0) 100644
===================================================================
--- /dev/null
+++ _po/ja/reference/operators/contain-term-v2.po    2017-06-10 09:11:28 +0900 (8b58406)
@@ -0,0 +1,106 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"PO-Revision-Date: 2017-06-10 09:10+0900\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+msgid ""
+"---\n"
+"title: \"&> operator\"\n"
+"upper_level: ../\n"
+"---"
+msgstr ""
+"---\n"
+"title: \"&>演算子\"\n"
+"upper_level: ../\n"
+"---"
+
+msgid "# `&>` operator"
+msgstr "# `&>`演算子"
+
+msgid "Since 1.2.1."
+msgstr "1.2.1で追加。"
+
+msgid "## Summary"
+msgstr "## 概要"
+
+msgid "`&>` operator checks whether a term is included in an array of terms."
+msgstr "`&>`演算子は単語の配列中に指定した単語が含まれているかどうかをチェックします。"
+
+msgid "## Syntax"
+msgstr "## 構文"
+
+msgid ""
+"```sql\n"
+"column &> term\n"
+"```"
+msgstr ""
+
+msgid "`column` is a column to be searched. It's `varchar[]` type."
+msgstr "`column`は検索対象のカラムです。型は`varchar[]`型です。"
+
+msgid "`term` is a term to be found. It's `varchar` type."
+msgstr "`term`は検索条件の単語です。型は`varchar`です。"
+
+msgid "## Operator classes"
+msgstr "## 演算子クラス"
+
+msgid ""
+"You need to specify one of the following operator classes to use this operator"
+":"
+msgstr "この演算子を使うには次のどれかの演算子クラスを指定する必要があります。"
+
+msgid "  * `pgroonga.varchar_array_ops`: Default for `varchar[]`"
+msgstr "  * `pgroonga.varchar_array_ops`:`varchar[]`型のデフォルト"
+
+msgid "  * `pgroonga.varchar_array_term_search_ops`: For `varchar[]`"
+msgstr "  * `pgroonga.varchar_array_term_search_ops`:`varchar[]`用"
+
+msgid "## Usage"
+msgstr "## 使い方"
+
+msgid "Here are sample schema and data for examples:"
+msgstr "例に使うサンプルスキーマとデータは次の通りです。"
+
+msgid ""
+"```sql\n"
+"CREATE TABLE memos (\n"
+"  id integer,\n"
+"  tags varchar(255)[]\n"
+");"
+msgstr ""
+
+msgid ""
+"CREATE INDEX pgroonga_tags_index ON memos USING pgroonga (tags);\n"
+"```"
+msgstr ""
+
+msgid ""
+"```sql\n"
+"INSERT INTO memos VALUES (1, ARRAY['PostgreSQ']);\n"
+"INSERT INTO memos VALUES (2, ARRAY['Groonga']);\n"
+"INSERT INTO memos VALUES (3, ARRAY['PGroonga', 'PostgreSQL', 'Groonga']);\n"
+"INSERT INTO memos VALUES (4, ARRAY['Groonga']);\n"
+"```"
+msgstr ""
+
+msgid ""
+"You can find records that contain `'Groonga'` term in an array of terms by `&>"
+"` operator:"
+msgstr "`&>`演算子を使うと単語の配列中から`'Groonga'`という単語を含むレコードを検索できます。"
+
+msgid ""
+"```sql\n"
+"SELECT * FROM memos WHERE tags &> 'Groonga';\n"
+"--  id |             tags              \n"
+"-- ----+-------------------------------\n"
+"--   2 | {Groonga}\n"
+"--   3 | {PGroonga,PostgreSQL,Groonga}\n"
+"--   4 | {Groonga}\n"
+"-- (3 rows)\n"
+"```"
+msgstr ""

  Added: ja/reference/operators/contain-term-v2.md (+62 -0) 100644
===================================================================
--- /dev/null
+++ ja/reference/operators/contain-term-v2.md    2017-06-10 09:11:28 +0900 (e2ef53a)
@@ -0,0 +1,62 @@
+---
+title: "&>演算子"
+upper_level: ../
+---
+
+# `&>`演算子
+
+1.2.1で追加。
+
+## 概要
+
+`&>`演算子は単語の配列中に指定した単語が含まれているかどうかをチェックします。
+
+## 構文
+
+```sql
+column &> term
+```
+
+`column`は検索対象のカラムです。型は`varchar[]`型です。
+
+`term`は検索条件の単語です。型は`varchar`です。
+
+## 演算子クラス
+
+この演算子を使うには次のどれかの演算子クラスを指定する必要があります。
+
+  * `pgroonga.varchar_array_ops`:`varchar[]`型のデフォルト
+
+  * `pgroonga.varchar_array_term_search_ops`:`varchar[]`用
+
+## 使い方
+
+例に使うサンプルスキーマとデータは次の通りです。
+
+```sql
+CREATE TABLE memos (
+  id integer,
+  tags varchar(255)[]
+);
+
+CREATE INDEX pgroonga_tags_index ON memos USING pgroonga (tags);
+```
+
+```sql
+INSERT INTO memos VALUES (1, ARRAY['PostgreSQ']);
+INSERT INTO memos VALUES (2, ARRAY['Groonga']);
+INSERT INTO memos VALUES (3, ARRAY['PGroonga', 'PostgreSQL', 'Groonga']);
+INSERT INTO memos VALUES (4, ARRAY['Groonga']);
+```
+
+`&>`演算子を使うと単語の配列中から`'Groonga'`という単語を含むレコードを検索できます。
+
+```sql
+SELECT * FROM memos WHERE tags &> 'Groonga';
+--  id |             tags              
+-- ----+-------------------------------
+--   2 | {Groonga}
+--   3 | {PGroonga,PostgreSQL,Groonga}
+--   4 | {Groonga}
+-- (3 rows)
+```
-------------- next part --------------
HTML����������������������������...
下载 



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