Kouhei Sutou
null+****@clear*****
Wed Jun 7 15:16:22 JST 2017
Kouhei Sutou 2017-06-07 15:16:22 +0900 (Wed, 07 Jun 2017) New Revision: 96f20a5e4a66926baaae52fe2cc1b6f599c98936 https://github.com/pgroonga/pgroonga.github.io/commit/96f20a5e4a66926baaae52fe2cc1b6f599c98936 Message: prefix-search-v2: add more information Modified files: reference/operators/prefix-rk-search-v2.md reference/operators/prefix-search-v2.md Modified: reference/operators/prefix-rk-search-v2.md (+27 -7) =================================================================== --- reference/operators/prefix-rk-search-v2.md 2017-06-07 15:07:01 +0900 (3916400) +++ reference/operators/prefix-rk-search-v2.md 2017-06-07 15:16:22 +0900 (5da3535) @@ -5,11 +5,11 @@ upper_level: ../ # `&^~` operator -## Summary +Since 2.0.0. -This operator uses v2 operator class. It doesn't provide backward compatibility until PGroonga 2.0.0. Use it carefully. +## Summary -`&^~` operator performs [prefix RK search](http://groonga.org/docs/reference/operations/prefix_rk_search.html). R is for [Romaji](https://en.wikipedia.org/wiki/Romanization_of_Japanese). K is for [Kana](https://en.wikipedia.org/wiki/Kana). +`&^~` operator performs [prefix RK search][groonga-prefik-rk-search]. R is for [Romaji][wikipedia-romaji]. K is for [Kana][wikipedia-kana]. Prefix RK search is useful for Japanese. @@ -21,7 +21,7 @@ Prefix RK search is useful for implementing input completion. column &^~ prefix ``` -`column` is a column to be searched. It's `text` type. +`column` is a column to be searched. It's `text` type or `text[]` type. `prefix` is a prefix to be found. It's `text` type. @@ -29,6 +29,14 @@ column &^~ prefix The operator returns `true` when the `column` value starts with `prefix`. +## Operator classes + +You need to specify one of the following operator classes to use this operator: + + * `pgroonga.text_term_search_ops`: For `text`. + + * `pgroonga.text_array_term_search_ops`: For `text[]`. + ## Usage Here are sample schema and data for examples: @@ -87,8 +95,20 @@ SELECT * FROM tag_readings WHERE katakana &^~ 'ピージー'; ## See also - * [`&^` operator](prefix-search-v2.html) + * [`&^` operator][prefix-search-v2] + + * [`&^|` operator][prefix-search-in-v2] + + * [`&^~|` operator][prefix-rk-search-in-v2] + +[groonga-prefix-rk-search]:http://groonga.org/docs/reference/operations/prefix_rk_search.html + +[wikipedia-romaji]:https://en.wikipedia.org/wiki/Romanization_of_Japanese + +[wikipedia-kana]:https://en.wikipedia.org/wiki/Kana + +[prefix-search-v2]:prefix-search-v2.html - * [`&^>` operator](prefix-search-contain-v2.html) +[prefix-search-in-v2]:prefix-search-in-v2.html - * [`&^~>` operator](prefix-rk-search-contain-v2.html) +[prefix-rk-search-in-v2]:prefix-rk-search-in-v2.html Modified: reference/operators/prefix-search-v2.md (+14 -4) =================================================================== --- reference/operators/prefix-search-v2.md 2017-06-07 15:07:01 +0900 (79e6fda) +++ reference/operators/prefix-search-v2.md 2017-06-07 15:16:22 +0900 (497fb1d) @@ -5,9 +5,9 @@ upper_level: ../ # `&^` operator -## Summary +Since 2.0.0. -This operator uses v2 operator class. It doesn't provide backward compatibility until PGroonga 2.0.0. Use it carefully. +## Summary `&^` operator performs prefix search. @@ -19,12 +19,20 @@ Prefix search is useful for implementing input completion. column &^ prefix ``` -`column` is a column to be searched. It's `text` type. +`column` is a column to be searched. It's `text` type or `text[]` type. `prefix` is a prefix to be found. It's `text` type. The operator returns `true` when the `column` value starts with `prefix`. +## Operator classes + +You need to specify one of the following operator classes to use this operator: + + * `pgroonga.text_term_search_ops`: For `text`. + + * `pgroonga.text_array_term_search_ops`: For `text[]`. + ## Usage Here are sample schema and data for examples: @@ -58,4 +66,6 @@ SELECT * FROM tags WHERE name &^ 'pg'; ## See also - * [`&^?` operator](prefix-rk-search-v2.html) + * [`&^?` operator][prefix-rk-search-v2] + +[prefix-rk-search-v2]:prefix-rk-search-v2.html -------------- next part -------------- HTML����������������������������...Download