Navigation Menu

Skip to content

Commit

Permalink
Use common format
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 25, 2015
1 parent b6e5cdf commit cf1fec5
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 24 deletions.
58 changes: 42 additions & 16 deletions _po/ja/reference/operators/like.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-25 22:00+0900\n"
"PO-Revision-Date: 2015-10-25 22:08+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -22,6 +22,9 @@ msgstr ""
msgid "# `LIKE` operator"
msgstr "# `LIKE`演算子"

msgid "## Summary"
msgstr "## 概要"

msgid ""
"PGroonga converts `column LIKE '%KEYWORD%'` condition to `column %% 'KEYWORD'`"
" internally. [`%%` operator](match.html) does full text search with index. It'"
Expand All @@ -30,6 +33,26 @@ msgstr ""
"PGroongaは内部的に`column LIKE '%キーワード%'`条件を`column %% 'キーワード'`条件に変換します。[`%%`演算子](m"
"atch.html)はインデックスを使って全文検索をします。これはインデックスを使わない`LIKE`演算子より速いです。"

msgid "## Syntax"
msgstr "## 構文"

msgid "Here is the syntax of this operator:"
msgstr "この演算子の構文は次の通りです。"

msgid ""
"```sql\n"
"column LIKE pattern\n"
"```"
msgstr ""

msgid "`column` is a column to be searched."
msgstr "`column`は検索対象のカラムです。"

msgid ""
"`pattern` is a search pattern. It's `text` type. It must be `'%KEYWORD%'` form"
"at."
msgstr "`pattern`は検索パターンです。`text`型です。`'%キーワード%'`というフォーマットではなければいけません。"

msgid ""
"Both beginning `%` and ending `%` are important. `'KEYWORD%'`, `'%KEYWORD'` an"
"d so on aren't converted to `column %% 'KEYWORD'`. PGroonga returns no records"
Expand All @@ -38,22 +61,11 @@ msgstr ""
"最初の`%`と最後の`%`はどちらも重要です。`'キーワード%'`、`'%キーワード'`などは`column %% 'キーワード'`に変換されます。このよう"
"なパターンを指定するとPGroongaは1件もレコードを返しません。なぜならPGroongaはインデックスなしではこれらのパターンを検索できないからです。"

msgid ""
"The original `LIKE` operator searches against text as is. But `%%` operator do"
"es full text search against normalized text. It means that search result of `L"
"IKE` operator with index and search result of the original `LIKE` operator may"
" be different."
msgstr ""
"元の`LIKE`演算子は対象テキストに対して検索します。しかし、`%%`演算子は正規化したテキストに対して検索します。これは、インデックスを使った`LIKE"
"`演算子の検索結果と、元の`LIKE`演算子の検索結果は異なるということです。"
msgid "## Usage"
msgstr "## 使い方"

msgid ""
"For example, the original `LIKE` operator searches with case sensitive. But `L"
"IKE` operator with index searches with case insensitive."
msgstr "たとえば、元の`LIKE`演算子は大文字小文字を区別して検索します。しかし、インデックスを使った`LIKE`演算子は大文字小文字を区別しません。"

msgid "Here are sample schema and data:"
msgstr ""
msgid "Here are sample schema and data for examples:"
msgstr "例に使うサンプルスキーマとデータは次の通りです。"

msgid ""
"```sql\n"
Expand Down Expand Up @@ -87,6 +99,20 @@ msgstr ""
"INSERT INTO memos VALUES (4, 'groongaコマンドがあります。');\n"
"```"

msgid ""
"The original `LIKE` operator searches against text as is. But `%%` operator do"
"es full text search against normalized text. It means that search result of `L"
"IKE` operator with index and search result of the original `LIKE` operator may"
" be different."
msgstr ""
"元の`LIKE`演算子は対象テキストに対して検索します。しかし、`%%`演算子は正規化したテキストに対して検索します。これは、インデックスを使った`LIKE"
"`演算子の検索結果と、元の`LIKE`演算子の検索結果は異なるということです。"

msgid ""
"For example, the original `LIKE` operator searches with case sensitive. But `L"
"IKE` operator with index searches with case insensitive."
msgstr "たとえば、元の`LIKE`演算子は大文字小文字を区別して検索します。しかし、インデックスを使った`LIKE`演算子は大文字小文字を区別しません。"

msgid "A search result of the original `LIKE` operator:"
msgstr "元の`LIKE`演算子の結果です。"

Expand Down
24 changes: 20 additions & 4 deletions ja/reference/operators/like.md
Expand Up @@ -5,15 +5,27 @@ layout: ja

# `LIKE`演算子

## 概要

PGroongaは内部的に`column LIKE '%キーワード%'`条件を`column %% 'キーワード'`条件に変換します。[`%%`演算子](match.html)はインデックスを使って全文検索をします。これはインデックスを使わない`LIKE`演算子より速いです。

最初の`%`と最後の`%`はどちらも重要です。`'キーワード%'``'%キーワード'`などは`column %% 'キーワード'`に変換されます。このようなパターンを指定するとPGroongaは1件もレコードを返しません。なぜならPGroongaはインデックスなしではこれらのパターンを検索できないからです。
## 構文

元の`LIKE`演算子は対象テキストに対して検索します。しかし、`%%`演算子は正規化したテキストに対して検索します。これは、インデックスを使った`LIKE`演算子の検索結果と、元の`LIKE`演算子の検索結果は異なるということです
この演算子の構文は次の通りです

たとえば、元の`LIKE`演算子は大文字小文字を区別して検索します。しかし、インデックスを使った`LIKE`演算子は大文字小文字を区別しません。
```sql
column LIKE pattern
```

Here are sample schema and data:
`column`は検索対象のカラムです。

`pattern`は検索パターンです。`text`型です。`'%キーワード%'`というフォーマットではなければいけません。

最初の`%`と最後の`%`はどちらも重要です。`'キーワード%'``'%キーワード'`などは`column %% 'キーワード'`に変換されます。このようなパターンを指定するとPGroongaは1件もレコードを返しません。なぜならPGroongaはインデックスなしではこれらのパターンを検索できないからです。

## 使い方

例に使うサンプルスキーマとデータは次の通りです。

```sql
CREATE TABLE memos (
Expand All @@ -31,6 +43,10 @@ INSERT INTO memos VALUES (3, 'PGroongaはインデックスとしてGroongaを
INSERT INTO memos VALUES (4, 'groongaコマンドがあります。');
```

元の`LIKE`演算子は対象テキストに対して検索します。しかし、`%%`演算子は正規化したテキストに対して検索します。これは、インデックスを使った`LIKE`演算子の検索結果と、元の`LIKE`演算子の検索結果は異なるということです。

たとえば、元の`LIKE`演算子は大文字小文字を区別して検索します。しかし、インデックスを使った`LIKE`演算子は大文字小文字を区別しません。

元の`LIKE`演算子の結果です。

```sql
Expand Down
24 changes: 20 additions & 4 deletions reference/operators/like.md
Expand Up @@ -5,15 +5,27 @@ layout: en

# `LIKE` operator

## Summary

PGroonga converts `column LIKE '%KEYWORD%'` condition to `column %% 'KEYWORD'` internally. [`%%` operator](match.html) does full text search with index. It's fast rather than `LIKE` operator without index.

Both beginning `%` and ending `%` are important. `'KEYWORD%'`, `'%KEYWORD'` and so on aren't converted to `column %% 'KEYWORD'`. PGroonga returns no records for these patterns. Because PGroonga can't search these patterns with index.
## Syntax

The original `LIKE` operator searches against text as is. But `%%` operator does full text search against normalized text. It means that search result of `LIKE` operator with index and search result of the original `LIKE` operator may be different.
Here is the syntax of this operator:

For example, the original `LIKE` operator searches with case sensitive. But `LIKE` operator with index searches with case insensitive.
```sql
column LIKE pattern
```

Here are sample schema and data:
`column` is a column to be searched.

`pattern` is a search pattern. It's `text` type. It must be `'%KEYWORD%'` format.

Both beginning `%` and ending `%` are important. `'KEYWORD%'`, `'%KEYWORD'` and so on aren't converted to `column %% 'KEYWORD'`. PGroonga returns no records for these patterns. Because PGroonga can't search these patterns with index.

## Usage

Here are sample schema and data for examples:

```sql
CREATE TABLE memos (
Expand All @@ -31,6 +43,10 @@ INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groon
INSERT INTO memos VALUES (4, 'There is groonga command.');
```

The original `LIKE` operator searches against text as is. But `%%` operator does full text search against normalized text. It means that search result of `LIKE` operator with index and search result of the original `LIKE` operator may be different.

For example, the original `LIKE` operator searches with case sensitive. But `LIKE` operator with index searches with case insensitive.

A search result of the original `LIKE` operator:

```sql
Expand Down

0 comments on commit cf1fec5

Please sign in to comment.