Debian Codegraph @

doc/locale/en/LC_MESSAGES/reference/grn_expr/query_syntax.po

raw
1 # -*- po -*-
2 # English translations for Groonga package.
3 # Copyright (C) 2009-2026 Groonga Project
4 # This file is distributed under the same license as the Groonga package.
5 # Automatically generated, 2026.
6 #
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: Groonga 16.0.5\n"
10 "Report-Msgid-Bugs-To: \n"
11 "PO-Revision-Date: 2026-05-22 06:03+0000\n"
12 "Last-Translator: Automatically generated\n"
13 "Language-Team: none\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: en\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20 msgid "Query syntax"
21 msgstr "Query syntax"
22
23 msgid "Query syntax is a syntax to specify search condition for common Web search form. It is similar to the syntax of Google's search form. For example, ``word1 word2`` means that groonga searches records that contain both ``word1`` and ``word2``. ``word1 OR word2`` means that groonga searches records that contain either ``word1`` or ``word2``."
24 msgstr "Query syntax is a syntax to specify search condition for common Web search form. It is similar to the syntax of Google's search form. For example, ``word1 word2`` means that groonga searches records that contain both ``word1`` and ``word2``. ``word1 OR word2`` means that groonga searches records that contain either ``word1`` or ``word2``."
25
26 msgid "Query syntax consists of :ref:`query-syntax-conditional-expression` , :ref:`query-syntax-combined-expression` and :ref:`query-syntax-assignment-expression`. Normally :ref:`query-syntax-assignment-expression` can be ignored. Because :ref:`query-syntax-assignment-expression` is disabled in the :ref:`select-query` option of :doc:`/reference/commands/select`. You can use it by specifying ``ALLOW_UPDATE`` to the :ref:`select-query-flags` option."
27 msgstr "Query syntax consists of :ref:`query-syntax-conditional-expression` , :ref:`query-syntax-combined-expression` and :ref:`query-syntax-assignment-expression`. Normally :ref:`query-syntax-assignment-expression` can be ignored. Because :ref:`query-syntax-assignment-expression` is disabled in the :ref:`select-query` option of :doc:`/reference/commands/select`. You can use it by specifying ``ALLOW_UPDATE`` to the :ref:`select-query-flags` option."
28
29 msgid ":ref:`query-syntax-conditional-expression` specifies an condition. :ref:`query-syntax-combined-expression` consists of one or more :ref:`query-syntax-conditional-expression`, :ref:`query-syntax-combined-expression` or :ref:`query-syntax-assignment-expression`. :ref:`query-syntax-assignment-expression` can assigns a value to a column."
30 msgstr ":ref:`query-syntax-conditional-expression` specifies an condition. :ref:`query-syntax-combined-expression` consists of one or more :ref:`query-syntax-conditional-expression`, :ref:`query-syntax-combined-expression` or :ref:`query-syntax-assignment-expression`. :ref:`query-syntax-assignment-expression` can assigns a value to a column."
31
32 msgid "Sample data"
33 msgstr "Sample data"
34
35 msgid "Here are a schema definition and sample data to show usage."
36 msgstr "Here are a schema definition and sample data to show usage."
37
38 msgid "Execution example::"
39 msgstr "Execution example::"
40
41 msgid "There is a table, ``Entries``, for blog entries. An entry has title, content and the number of likes for the entry. Title is key of ``Entries``. Content is value of ``Entries.content`` column. The number of likes is value of ``Entries.n_likes`` column."
42 msgstr "There is a table, ``Entries``, for blog entries. An entry has title, content and the number of likes for the entry. Title is key of ``Entries``. Content is value of ``Entries.content`` column. The number of likes is value of ``Entries.n_likes`` column."
43
44 msgid "``Entries._key`` column and ``Entries.content`` column are indexed using ``TokenBigram`` tokenizer. So both ``Entries._key`` and ``Entries.content`` are fulltext search ready."
45 msgstr "``Entries._key`` column and ``Entries.content`` column are indexed using ``TokenBigram`` tokenizer. So both ``Entries._key`` and ``Entries.content`` are fulltext search ready."
46
47 msgid "OK. The schema and data for examples are ready."
48 msgstr "OK. The schema and data for examples are ready."
49
50 msgid "Escape"
51 msgstr "Escape"
52
53 msgid "There are special characters in query syntax. To use a special character as itself, it should be escaped by prepending ``\\``. For example, ``\"`` is a special character. It is escaped as ``\\\"``."
54 msgstr "There are special characters in query syntax. To use a special character as itself, it should be escaped by prepending ``\\``. For example, ``\"`` is a special character. It is escaped as ``\\\"``."
55
56 msgid "Here is a special character list:"
57 msgstr "Here is a special character list:"
58
59 msgid "``[space]`` (escaped as ``[backslash][space]``) (You should substitute ``[space]`` with a white space character that is 0x20 in ASCII and ``[backslash]`` with ``\\\\``.)"
60 msgstr "``[space]`` (escaped as ``[backslash][space]``) (You should substitute ``[space]`` with a white space character that is 0x20 in ASCII and ``[backslash]`` with ``\\\\``.)"
61
62 msgid "``\"`` (escaped as ``\\\"``)"
63 msgstr "``\"`` (escaped as ``\\\"``)"
64
65 msgid "``(`` (escaped as ``\\(``)"
66 msgstr "``(`` (escaped as ``\\(``)"
67
68 msgid "``)`` (escaped as ``\\)``)"
69 msgstr "``)`` (escaped as ``\\)``)"
70
71 msgid "``\\`` (escaped as ``\\\\``)"
72 msgstr "``\\`` (escaped as ``\\\\``)"
73
74 msgid "You can use quote instead of escape special characters except ``\\`` (backslash). You need to use backslash for escaping backslash like ``\\\\`` in quote."
75 msgstr "You can use quote instead of escape special characters except ``\\`` (backslash). You need to use backslash for escaping backslash like ``\\\\`` in quote."
76
77 msgid "Quote syntax is ``\"...\"``. You need escape ``\"`` as ``\\\"`` in ``\"...\"`` quote syntax. For example, ``You say \"Hello Alice!\"`` can be quoted ``\"You say \\\"Hello Alice!\\\"\"``."
78 msgstr "Quote syntax is ``\"...\"``. You need escape ``\"`` as ``\\\"`` in ``\"...\"`` quote syntax. For example, ``You say \"Hello Alice!\"`` can be quoted ``\"You say \\\"Hello Alice!\\\"\"``."
79
80 msgid "In addition ``'...'`` isn't available in query syntax."
81 msgstr "In addition ``'...'`` isn't available in query syntax."
82
83 msgid "There is an important point which you have to care. The ``\\`` (backslash) character is interpreted by command line shell. So if you want to search ``(`` itself for example, you need to escape twice (``\\\\(``) in command line shell. The command line shell interprets ``\\\\(`` as ``\\(``, then pass such a literal to Groonga. Groonga regards ``\\(`` as ``(``, then search ``(`` itself from database. If you can't do intended search by Groonga, confirm whether special character is escaped properly."
84 msgstr "There is an important point which you have to care. The ``\\`` (backslash) character is interpreted by command line shell. So if you want to search ``(`` itself for example, you need to escape twice (``\\\\(``) in command line shell. The command line shell interprets ``\\\\(`` as ``\\(``, then pass such a literal to Groonga. Groonga regards ``\\(`` as ``(``, then search ``(`` itself from database. If you can't do intended search by Groonga, confirm whether special character is escaped properly."
85
86 msgid "Conditional expression"
87 msgstr "Conditional expression"
88
89 msgid "Here is available conditional expression list."
90 msgstr "Here is available conditional expression list."
91
92 msgid "Full text search condition"
93 msgstr "Full text search condition"
94
95 msgid "Its syntax is ``keyword``."
96 msgstr "Its syntax is ``keyword``."
97
98 msgid "``Full text search condition`` specifies a full text search condition against the default match columns. Match columns are full text search target columns."
99 msgstr "``Full text search condition`` specifies a full text search condition against the default match columns. Match columns are full text search target columns."
100
101 msgid "You should specify the default match columns for full text search. They can be specified by ``--match_columns`` option of :doc:`/reference/commands/select`. If you don't specify the default match columns, this conditional expression fails."
102 msgstr "You should specify the default match columns for full text search. They can be specified by ``--match_columns`` option of :doc:`/reference/commands/select`. If you don't specify the default match columns, this conditional expression fails."
103
104 msgid "This conditional expression does full text search with ``keyword``. ``keyword`` should not contain any spaces. If ``keyword`` contains a space such as ``search keyword``, it means two full text search conditions; ``search`` and ``keyword``. If you want to specifies a keyword that contains one or more spaces, you can use ``phrase search condition`` that is described below."
105 msgstr "This conditional expression does full text search with ``keyword``. ``keyword`` should not contain any spaces. If ``keyword`` contains a space such as ``search keyword``, it means two full text search conditions; ``search`` and ``keyword``. If you want to specifies a keyword that contains one or more spaces, you can use ``phrase search condition`` that is described below."
106
107 msgid "Here is a simple example:"
108 msgstr "Here is a simple example:"
109
110 msgid "The expression matches records that contain a word ``fast`` in ``content`` column value."
111 msgstr "The expression matches records that contain a word ``fast`` in ``content`` column value."
112
113 msgid "``content`` column is the default match column."
114 msgstr "``content`` column is the default match column."
115
116 msgid "Phrase search condition"
117 msgstr "Phrase search condition"
118
119 msgid "Its syntax is ``\"search keyword\"``."
120 msgstr "Its syntax is ``\"search keyword\"``."
121
122 msgid "``Phrase search condition`` specifies a phrase search condition against the default match columns."
123 msgstr "``Phrase search condition`` specifies a phrase search condition against the default match columns."
124
125 msgid "This conditional expression does phrase search with ``search keyword``. Phrase search searches records that contain ``search`` and ``keyword`` and those terms are appeared in the same order and adjacent. Thus, ``Put a search keyword in the form`` is matched but ``Search by the keyword`` and ``There is a keyword. Search by it!`` aren't matched."
126 msgstr "This conditional expression does phrase search with ``search keyword``. Phrase search searches records that contain ``search`` and ``keyword`` and those terms are appeared in the same order and adjacent. Thus, ``Put a search keyword in the form`` is matched but ``Search by the keyword`` and ``There is a keyword. Search by it!`` aren't matched."
127
128 msgid "The expression matches records that contain a phrase ``I started`` in ``content`` column value. ``I also started`` isn't matched because ``I`` and ``started`` aren't adjacent."
129 msgstr "The expression matches records that contain a phrase ``I started`` in ``content`` column value. ``I also started`` isn't matched because ``I`` and ``started`` aren't adjacent."
130
131 msgid "Full text search condition (with explicit match column)"
132 msgstr "Full text search condition (with explicit match column)"
133
134 msgid "Its syntax is ``column:@keyword``."
135 msgstr "Its syntax is ``column:@keyword``."
136
137 msgid "It's similar to ``full text search condition`` but it doesn't require the default match columns. You need to specify match column for the full text search condition by ``column:`` instead of ``--match_columns`` option of :doc:`/reference/commands/select`."
138 msgstr "It's similar to ``full text search condition`` but it doesn't require the default match columns. You need to specify match column for the full text search condition by ``column:`` instead of ``--match_columns`` option of :doc:`/reference/commands/select`."
139
140 msgid "This conditional expression is useful when you want to use two or more full text search against different columns. The default match columns specified by ``--match_columns`` option can't be specified multiple times. You need to specify the second match column by this conditional expression."
141 msgstr "This conditional expression is useful when you want to use two or more full text search against different columns. The default match columns specified by ``--match_columns`` option can't be specified multiple times. You need to specify the second match column by this conditional expression."
142
143 msgid "The different between ``full text search condition`` and ``full text search condition (with explicit match column)`` is whether advanced match columns are supported or not. ``Full text search condition`` supports advanced match columns but ``full text search condition (with explicit match column)`` isn't supported. Advanced match columns has the following features:"
144 msgstr "The different between ``full text search condition`` and ``full text search condition (with explicit match column)`` is whether advanced match columns are supported or not. ``Full text search condition`` supports advanced match columns but ``full text search condition (with explicit match column)`` isn't supported. Advanced match columns has the following features:"
145
146 msgid "Weight is supported."
147 msgstr "Weight is supported."
148
149 msgid "Using multiple columns are supported."
150 msgstr "Using multiple columns are supported."
151
152 msgid "Using index column as a match column is supported."
153 msgstr "Using index column as a match column is supported."
154
155 msgid "See description of ``--match_columns`` option of :doc:`/reference/commands/select` about them."
156 msgstr "See description of ``--match_columns`` option of :doc:`/reference/commands/select` about them."
157
158 msgid "Phrase search condition (with explicit match column)"
159 msgstr "Phrase search condition (with explicit match column)"
160
161 msgid "Its syntax is ``column:@\"search keyword\"``."
162 msgstr "Its syntax is ``column:@\"search keyword\"``."
163
164 msgid "It's similar to ``phrase search condition`` but it doesn't require the default match columns. You need to specify match column for the phrase search condition by ``column:`` instead of ``--match_columns`` option of :doc:`/reference/commands/select`."
165 msgstr "It's similar to ``phrase search condition`` but it doesn't require the default match columns. You need to specify match column for the phrase search condition by ``column:`` instead of ``--match_columns`` option of :doc:`/reference/commands/select`."
166
167 msgid "The different between ``phrase search condition`` and ``phrase search condition (with explicit match column)`` is similar to between ``full text search condition`` and ``full text search condition (with explicit match column)``. ``Phrase search condition`` supports advanced match columns but ``phrase search condition (with explicit match column)`` isn't supported. See description of ``full text search condition (with explicit match column)`` about advanced match columns."
168 msgstr "The different between ``phrase search condition`` and ``phrase search condition (with explicit match column)`` is similar to between ``full text search condition`` and ``full text search condition (with explicit match column)``. ``Phrase search condition`` supports advanced match columns but ``phrase search condition (with explicit match column)`` isn't supported. See description of ``full text search condition (with explicit match column)`` about advanced match columns."
169
170 msgid "Prefix search condition"
171 msgstr "Prefix search condition"
172
173 msgid "Its syntax is ``column:^value`` or ``value*``."
174 msgstr "Its syntax is ``column:^value`` or ``value*``."
175
176 msgid "This conditional expression does prefix search with ``value``. Prefix search searches records that contain a word that starts with ``value``."
177 msgstr "This conditional expression does prefix search with ``value``. Prefix search searches records that contain a word that starts with ``value``."
178
179 msgid "You can use fast prefix search against a column. The column must be indexed and index table must be patricia trie table (``TABLE_PAT_KEY``) or double array trie table (``TABLE_DAT_KEY``). You can also use fast prefix search against ``_key`` pseudo column of patricia trie table or double array trie table. You don't need to index ``_key``."
180 msgstr "You can use fast prefix search against a column. The column must be indexed and index table must be patricia trie table (``TABLE_PAT_KEY``) or double array trie table (``TABLE_DAT_KEY``). You can also use fast prefix search against ``_key`` pseudo column of patricia trie table or double array trie table. You don't need to index ``_key``."
181
182 msgid "Prefix search can be used with other table types but it causes all records scan. It's not problem for small records but it spends more time for large records."
183 msgstr "Prefix search can be used with other table types but it causes all records scan. It's not problem for small records but it spends more time for large records."
184
185 msgid "It doesn't require the default match columns such as ``full text search condition`` and ``phrase search condition``."
186 msgstr "It doesn't require the default match columns such as ``full text search condition`` and ``phrase search condition``."
187
188 msgid "The expression matches records that contain a word that starts with ``Goo`` in ``_key`` pseudo column value. ``Good-bye Senna`` and ``Good-bye Tritonn`` are matched with the expression."
189 msgstr "The expression matches records that contain a word that starts with ``Goo`` in ``_key`` pseudo column value. ``Good-bye Senna`` and ``Good-bye Tritonn`` are matched with the expression."
190
191 msgid "Suffix search condition"
192 msgstr "Suffix search condition"
193
194 msgid "Its syntax is ``column:$value``."
195 msgstr "Its syntax is ``column:$value``."
196
197 msgid "This conditional expression does suffix search with ``value``. Suffix search searches records that contain a word that ends with ``value``."
198 msgstr "This conditional expression does suffix search with ``value``. Suffix search searches records that contain a word that ends with ``value``."
199
200 msgid "You can use fast suffix search against a column. The column must be indexed and index table must be patricia trie table (``TABLE_PAT_KEY``) with ``KEY_WITH_SIS`` flag. You can also use fast suffix search against ``_key`` pseudo column of patricia trie table (``TABLE_PAT_KEY``) with ``KEY_WITH_SIS`` flag. You don't need to index ``_key``. We recommended that you use index column based fast suffix search instead of ``_key`` based fast suffix search. ``_key`` based fast suffix search returns automatically registered substrings. (TODO: write document about suffix search and link to it from here.)"
201 msgstr "You can use fast suffix search against a column. The column must be indexed and index table must be patricia trie table (``TABLE_PAT_KEY``) with ``KEY_WITH_SIS`` flag. You can also use fast suffix search against ``_key`` pseudo column of patricia trie table (``TABLE_PAT_KEY``) with ``KEY_WITH_SIS`` flag. You don't need to index ``_key``. We recommended that you use index column based fast suffix search instead of ``_key`` based fast suffix search. ``_key`` based fast suffix search returns automatically registered substrings. (TODO: write document about suffix search and link to it from here.)"
202
203 msgid "Fast suffix search can be used only for non-ASCII characters such as hiragana in Japanese. You cannot use fast suffix search for ASCII character."
204 msgstr "Fast suffix search can be used only for non-ASCII characters such as hiragana in Japanese. You cannot use fast suffix search for ASCII character."
205
206 msgid "Suffix search can be used with other table types or patricia trie table without ``KEY_WITH_SIS`` flag but it causes all records scan. It's not problem for small records but it spends more time for large records."
207 msgstr "Suffix search can be used with other table types or patricia trie table without ``KEY_WITH_SIS`` flag but it causes all records scan. It's not problem for small records but it spends more time for large records."
208
209 msgid "Here is a simple example. It uses fast suffix search for hiragana in Japanese that is one of non-ASCII characters."
210 msgstr "Here is a simple example. It uses fast suffix search for hiragana in Japanese that is one of non-ASCII characters."
211
212 msgid "The expression matches records that have value that ends with ``んが`` in ``content`` column value. ``ぐるんが`` and ``むるんが`` are matched with the expression."
213 msgstr "The expression matches records that have value that ends with ``んが`` in ``content`` column value. ``ぐるんが`` and ``むるんが`` are matched with the expression."
214
215 msgid "Near search condition"
216 msgstr "Near search condition"
217
218 msgid "Its syntax is ``*N\"token1 token2 ...\"``."
219 msgstr "Its syntax is ``*N\"token1 token2 ...\"``."
220
221 msgid "This conditional expression does near search with ``token1``, ``token2`` and ``...``. Near search searches records that contain the all specified tokens and there are at most 10 tokens between them. For example, ``*N\"a b c\"`` matches ``a 1 2 3 4 5 b 6 7 8 9 10 c`` but doesn't match ``a 1 2 3 4 5 b 6 7 8 9 10 11 c``:"
222 msgstr "This conditional expression does near search with ``token1``, ``token2`` and ``...``. Near search searches records that contain the all specified tokens and there are at most 10 tokens between them. For example, ``*N\"a b c\"`` matches ``a 1 2 3 4 5 b 6 7 8 9 10 c`` but doesn't match ``a 1 2 3 4 5 b 6 7 8 9 10 11 c``:"
223
224 msgid "Note that you must specify ``WITH_POSITION`` to an index column that is used for near search. If you don't specify ``WITH_POSITION``, near search can't count distance correctly."
225 msgstr "Note that you must specify ``WITH_POSITION`` to an index column that is used for near search. If you don't specify ``WITH_POSITION``, near search can't count distance correctly."
226
227 msgid "You can customize the max interval of the given tokens (``10`` by default) by specifying a number after ``*N``. Here is an example that uses ``2`` as the max interval of the given tokens::"
228 msgstr "You can customize the max interval of the given tokens (``10`` by default) by specifying a number after ``*N``. Here is an example that uses ``2`` as the max interval of the given tokens::"
229
230 msgid "Here is an example to customize the max interval of the given tokens:"
231 msgstr "Here is an example to customize the max interval of the given tokens:"
232
233 msgid "To be precious, you can specify a word instead of a token for near search. Because the passed text is tokenized before near search. A word consists of one or more tokens. If you specify a word, it may not work as you expected. For example, ``*N\"a1b2c3d\"`` matches both ``a 1 b 2 c 3 d`` and ``a b c d 1 2 3``:"
234 msgstr "To be precious, you can specify a word instead of a token for near search. Because the passed text is tokenized before near search. A word consists of one or more tokens. If you specify a word, it may not work as you expected. For example, ``*N\"a1b2c3d\"`` matches both ``a 1 b 2 c 3 d`` and ``a b c d 1 2 3``:"
235
236 msgid "Because ``*N\"a1b2c3d\"`` equals to ``*N\"a 1 b 2 c 3 d\"``."
237 msgstr "Because ``*N\"a1b2c3d\"`` equals to ``*N\"a 1 b 2 c 3 d\"``."
238
239 msgid "If you want to specify words, :ref:`query-syntax-near-phrase-search-condition` is what you want."
240 msgstr "If you want to specify words, :ref:`query-syntax-near-phrase-search-condition` is what you want."
241
242 msgid "The max intervals of each token."
243 msgstr "The max intervals of each token."
244
245 msgid "You can specify the max intervals of each token. The default is no limit. It means that all intervals of each token are valid as long as the max interval is satisfied."
246 msgstr "You can specify the max intervals of each token. The default is no limit. It means that all intervals of each token are valid as long as the max interval is satisfied."
247
248 msgid "Here is an example that use ``2`` for the max interval of the first interval and ``4`` for the max interval of the second interval::"
249 msgstr "Here is an example that use ``2`` for the max interval of the first interval and ``4`` for the max interval of the second interval::"
250
251 msgid "``10`` is the max interval."
252 msgstr "``10`` is the max interval."
253
254 msgid "``|`` is the separator of the max intervals of each token."
255 msgstr "``|`` is the separator of the max intervals of each token."
256
257 msgid "This matches ``a x b x x x c``. But this doesn't match ``a x x b c``, ``a b x x x x c`` and so on because the former has ``3`` interval for the first interval that is larger than ``2`` and the latter has ``5`` interval for the second interval that is later than ``4``."
258 msgstr "This matches ``a x b x x x c``. But this doesn't match ``a x x b c``, ``a b x x x x c`` and so on because the former has ``3`` interval for the first interval that is larger than ``2`` and the latter has ``5`` interval for the second interval that is later than ``4``."
259
260 msgid "Here is an example that specifies the max intervals of each token:"
261 msgstr "Here is an example that specifies the max intervals of each token:"
262
263 msgid "You can omit one or more intervals. Omitted intervals are treated as ``-1``. It means that ``*N11,5`` equals ``*N11,5|-1``. ``-1`` means that no limit."
264 msgstr "You can omit one or more intervals. Omitted intervals are treated as ``-1``. It means that ``*N11,5`` equals ``*N11,5|-1``. ``-1`` means that no limit."
265
266 msgid "Here is an example that omits an interval:"
267 msgstr "Here is an example that omits an interval:"
268
269 msgid "You can specify extra intervals. They are just ignored:"
270 msgstr "You can specify extra intervals. They are just ignored:"
271
272 msgid "Near phrase search condition"
273 msgstr "Near phrase search condition"
274
275 msgid "Its syntax is ``*NP\"phrase1 phrase2 ...\"``."
276 msgstr "Its syntax is ``*NP\"phrase1 phrase2 ...\"``."
277
278 msgid "This conditional expression does near phrase search with ``phrase1``, ``phrase2`` and ``...``. Near phrase search searches records that contain the all specified phrases and there are at most 10 tokens between them. For example, ``*NP\"a1b2c3d\"`` matches ``a 1 b 2 c 3 d`` but doesn't match ``a b c d 1 2 3``. Because the latter uses different order:"
279 msgstr "This conditional expression does near phrase search with ``phrase1``, ``phrase2`` and ``...``. Near phrase search searches records that contain the all specified phrases and there are at most 10 tokens between them. For example, ``*NP\"a1b2c3d\"`` matches ``a 1 b 2 c 3 d`` but doesn't match ``a b c d 1 2 3``. Because the latter uses different order:"
280
281 msgid "You can use a phrase that includes spaces by quoting such as ``*NP\"\\\"groonga mroonga\\\" pgroonga\"``. Note that you need to escape ``\\\"`` in command syntax such as ``*NP\"\\\\\\\"groonga mroonga\\\\\\\" pgroonga\"``. This query matches ``groonga mroonga pgroonga`` but doesn't match ``groonga pgroonga mroonga`` because ``mroonga`` isn't right after ``groonga``:"
282 msgstr "You can use a phrase that includes spaces by quoting such as ``*NP\"\\\"groonga mroonga\\\" pgroonga\"``. Note that you need to escape ``\\\"`` in command syntax such as ``*NP\"\\\\\\\"groonga mroonga\\\\\\\" pgroonga\"``. This query matches ``groonga mroonga pgroonga`` but doesn't match ``groonga pgroonga mroonga`` because ``mroonga`` isn't right after ``groonga``:"
283
284 msgid "You can customize the max interval of the given phrases (``10`` by default) by specifying a number after ``*NP``. Here is an example that uses ``2`` as the max interval of the given phrases::"
285 msgstr "You can customize the max interval of the given phrases (``10`` by default) by specifying a number after ``*NP``. Here is an example that uses ``2`` as the max interval of the given phrases::"
286
287 msgid "Here is an example to customize the max interval of the given phrases:"
288 msgstr "Here is an example to customize the max interval of the given phrases:"
289
290 msgid "You can use additional interval only for the last phrase. It means that you can accept more distance only between the second to last phrase and the last phrase. This is useful for implementing a near phrase search in the same sentence. If you specify ``.`` (sentence end phrase) as the last phrase and specify ``-1`` as the additional last interval, the other specified phrases must be appeared before ``.``. You must append ``$`` to the last phrase like ``.$``."
291 msgstr "You can use additional interval only for the last phrase. It means that you can accept more distance only between the second to last phrase and the last phrase. This is useful for implementing a near phrase search in the same sentence. If you specify ``.`` (sentence end phrase) as the last phrase and specify ``-1`` as the additional last interval, the other specified phrases must be appeared before ``.``. You must append ``$`` to the last phrase like ``.$``."
292
293 msgid "Here is an example that uses ``-1`` as the additional last interval of the given phrases::"
294 msgstr "Here is an example that uses ``-1`` as the additional last interval of the given phrases::"
295
296 msgid "Here is an example to customize the additional last interval of the given phrases:"
297 msgstr "Here is an example to customize the additional last interval of the given phrases:"
298
299 msgid "You can also use positive number for the additional last interval. If you specify positive number as the additional last interval, all of the following conditions must be satisfied:"
300 msgstr "You can also use positive number for the additional last interval. If you specify positive number as the additional last interval, all of the following conditions must be satisfied:"
301
302 msgid "The interval between the first phrase and the second to last phrase is less than or equals to ``the max interval``."
303 msgstr "The interval between the first phrase and the second to last phrase is less than or equals to ``the max interval``."
304
305 msgid "The interval between the first phrase and the last phrase is less than or equals to ``the max interval`` + ``the additional last interval``."
306 msgstr "The interval between the first phrase and the last phrase is less than or equals to ``the max interval`` + ``the additional last interval``."
307
308 msgid "If you specify negative number as the additional last interval, the second condition isn't required. Appearing the last phrase is just needed."
309 msgstr "If you specify negative number as the additional last interval, the second condition isn't required. Appearing the last phrase is just needed."
310
311 msgid "Here is an example to use positive number as the additional last interval:"
312 msgstr "Here is an example to use positive number as the additional last interval:"
313
314 msgid "The max intervals of each phrase."
315 msgstr "The max intervals of each phrase."
316
317 msgid "You can also specify the max intervals of each phrase like :ref:`query-syntax-near-search-condition`."
318 msgstr "You can also specify the max intervals of each phrase like :ref:`query-syntax-near-search-condition`."
319
320 msgid "Here is an example:"
321 msgstr "Here is an example:"
322
323 msgid "Near phrase product search condition"
324 msgstr "Near phrase product search condition"
325
326 msgid "Its syntax is ``*NPP\"(phrase1_1 phrase1_2 ...) (phrase2_1 phrase2_2 ...) ...\"``."
327 msgstr "Its syntax is ``*NPP\"(phrase1_1 phrase1_2 ...) (phrase2_1 phrase2_2 ...) ...\"``."
328
329 msgid "This conditional expression does multiple :ref:`query-syntax-near-phrase-search-condition`. Phrases for each :ref:`query-syntax-near-phrase-search-condition` are computed as product of ``{phrase1_1, phrase1_2, ...}``, ``{phrase2_1, phrase2_2, ...}`` and ``...``. For example, ``*NPP\"(a b c) (d e)\"`` uses the following phrases for near phrase searches:"
330 msgstr "This conditional expression does multiple :ref:`query-syntax-near-phrase-search-condition`. Phrases for each :ref:`query-syntax-near-phrase-search-condition` are computed as product of ``{phrase1_1, phrase1_2, ...}``, ``{phrase2_1, phrase2_2, ...}`` and ``...``. For example, ``*NPP\"(a b c) (d e)\"`` uses the following phrases for near phrase searches:"
331
332 msgid "``a d``"
333 msgstr "``a d``"
334
335 msgid "``a e``"
336 msgstr "``a e``"
337
338 msgid "``b d``"
339 msgstr "``b d``"
340
341 msgid "``b e``"
342 msgstr "``b e``"
343
344 msgid "``c d``"
345 msgstr "``c d``"
346
347 msgid "``c e``"
348 msgstr "``c e``"
349
350 msgid "You can use the all features of :ref:`query-syntax-near-phrase-search-condition` such as the max interval, ``$`` for the last phrase and the additional last interval."
351 msgstr "You can use the all features of :ref:`query-syntax-near-phrase-search-condition` such as the max interval, ``$`` for the last phrase and the additional last interval."
352
353 msgid "This is more effective than multiple :ref:`query-syntax-near-phrase-search-condition` ."
354 msgstr "This is more effective than multiple :ref:`query-syntax-near-phrase-search-condition` ."
355
356 msgid "Ordered near phrase search condition"
357 msgstr "Ordered near phrase search condition"
358
359 msgid "It's syntax is ``*ONP\"phrase1 phrase2 ...\"``"
360 msgstr "It's syntax is ``*ONP\"phrase1 phrase2 ...\"``"
361
362 msgid "This conditional expression does ordered near phrase search with ``phrase1``, ``phrase2`` and ``...``. Ordered near phrase search is similar to :ref:`query-syntax-near-phrase-search-condition` but ordered near phrase search checks phrases order. For example, ``*ONP\"groonga mroonga pgroonga\"`` matches ``groonga mroonga rroonga pgroonga`` but doesn't match ``groonga rroonga pgroonga mroonga``. Because the latter uses different order:"
363 msgstr "This conditional expression does ordered near phrase search with ``phrase1``, ``phrase2`` and ``...``. Ordered near phrase search is similar to :ref:`query-syntax-near-phrase-search-condition` but ordered near phrase search checks phrases order. For example, ``*ONP\"groonga mroonga pgroonga\"`` matches ``groonga mroonga rroonga pgroonga`` but doesn't match ``groonga rroonga pgroonga mroonga``. Because the latter uses different order:"
364
365 msgid "You can use the all features of :ref:`query-syntax-near-phrase-search-condition` such as the max interval and the additional last interval. But you don't need to specify ``$`` for the last phrase because the last phrase in query is the last phrase."
366 msgstr "You can use the all features of :ref:`query-syntax-near-phrase-search-condition` such as the max interval and the additional last interval. But you don't need to specify ``$`` for the last phrase because the last phrase in query is the last phrase."
367
368 msgid "Ordered near phrase product search condition"
369 msgstr "Ordered near phrase product search condition"
370
371 msgid "Its syntax is ``*ONPP\"(phrase1_1 phrase1_2 ...) (phrase2_1 phrase2_2 ...) ...\"``."
372 msgstr "Its syntax is ``*ONPP\"(phrase1_1 phrase1_2 ...) (phrase2_1 phrase2_2 ...) ...\"``."
373
374 msgid "This conditional expression does ordered near phrase product search. Ordered near phrase product search is similar to :ref:`query-syntax-near-phrase-product-search-condition` but ordered near phrase product search checks phrases order like :ref:`query-syntax-ordered-near-phrase-search-condition`. For example, ``*ONPP\"(a b c) (d e)\"`` matches ``a 1 d`` but doesn't match ``d 1 a``. Because the latter uses different order."
375 msgstr "This conditional expression does ordered near phrase product search. Ordered near phrase product search is similar to :ref:`query-syntax-near-phrase-product-search-condition` but ordered near phrase product search checks phrases order like :ref:`query-syntax-ordered-near-phrase-search-condition`. For example, ``*ONPP\"(a b c) (d e)\"`` matches ``a 1 d`` but doesn't match ``d 1 a``. Because the latter uses different order."
376
377 msgid "Similar search condition"
378 msgstr "Similar search condition"
379
380 msgid "TODO"
381 msgstr "TODO"
382
383 msgid "Equal condition"
384 msgstr "Equal condition"
385
386 msgid "Its syntax is ``column:value``."
387 msgstr "Its syntax is ``column:value``."
388
389 msgid "It matches records that ``column`` value is equal to ``value``."
390 msgstr "It matches records that ``column`` value is equal to ``value``."
391
392 msgid "The expression matches records that ``_key`` column value is equal to ``Groonga``."
393 msgstr "The expression matches records that ``_key`` column value is equal to ``Groonga``."
394
395 msgid "Not equal condition"
396 msgstr "Not equal condition"
397
398 msgid "Its syntax is ``column:!value``."
399 msgstr "Its syntax is ``column:!value``."
400
401 msgid "It matches records that ``column`` value isn't equal to ``value``."
402 msgstr "It matches records that ``column`` value isn't equal to ``value``."
403
404 msgid "The expression matches records that ``_key`` column value is not equal to ``Groonga``."
405 msgstr "The expression matches records that ``_key`` column value is not equal to ``Groonga``."
406
407 msgid "Less than condition"
408 msgstr "Less than condition"
409
410 msgid "Its syntax is ``column:<value``."
411 msgstr "Its syntax is ``column:<value``."
412
413 msgid "It matches records that ``column`` value is less than ``value``."
414 msgstr "It matches records that ``column`` value is less than ``value``."
415
416 msgid "If ``column`` type is numerical type such as ``Int32``, ``column`` value and ``value`` are compared as number. If ``column`` type is text type such as ``ShortText``, ``column`` value and ``value`` are compared as bit sequence."
417 msgstr "If ``column`` type is numerical type such as ``Int32``, ``column`` value and ``value`` are compared as number. If ``column`` type is text type such as ``ShortText``, ``column`` value and ``value`` are compared as bit sequence."
418
419 msgid "The expression matches records that ``n_likes`` column value is less than ``10``."
420 msgstr "The expression matches records that ``n_likes`` column value is less than ``10``."
421
422 msgid "Greater than condition"
423 msgstr "Greater than condition"
424
425 msgid "Its syntax is ``column:>value``."
426 msgstr "Its syntax is ``column:>value``."
427
428 msgid "It matches records that ``column`` value is greater than ``value``."
429 msgstr "It matches records that ``column`` value is greater than ``value``."
430
431 msgid "The expression matches records that ``n_likes`` column value is greater than ``10``."
432 msgstr "The expression matches records that ``n_likes`` column value is greater than ``10``."
433
434 msgid "Less than or equal to condition"
435 msgstr "Less than or equal to condition"
436
437 msgid "Its syntax is ``column:<=value``."
438 msgstr "Its syntax is ``column:<=value``."
439
440 msgid "It matches records that ``column`` value is less than or equal to ``value``."
441 msgstr "It matches records that ``column`` value is less than or equal to ``value``."
442
443 msgid "The expression matches records that ``n_likes`` column value is less than or equal to ``10``."
444 msgstr "The expression matches records that ``n_likes`` column value is less than or equal to ``10``."
445
446 msgid "Greater than or equal to condition"
447 msgstr "Greater than or equal to condition"
448
449 msgid "Its syntax is ``column:>=value``."
450 msgstr "Its syntax is ``column:>=value``."
451
452 msgid "It matches records that ``column`` value is greater than or equal to ``value``."
453 msgstr "It matches records that ``column`` value is greater than or equal to ``value``."
454
455 msgid "The expression matches records that ``n_likes`` column value is greater than or equal to ``10``."
456 msgstr "The expression matches records that ``n_likes`` column value is greater than or equal to ``10``."
457
458 msgid "Regular expression condition"
459 msgstr "Regular expression condition"
460
461 msgid "Its syntax is ``column:~pattern``."
462 msgstr "Its syntax is ``column:~pattern``."
463
464 msgid "It matches records that ``column`` value is matched to ``pattern``. ``pattern`` must be valid :doc:`/reference/regular_expression`."
465 msgstr "It matches records that ``column`` value is matched to ``pattern``. ``pattern`` must be valid :doc:`/reference/regular_expression`."
466
467 msgid "The following example uses ``.roonga`` as pattern. It matches ``Groonga``, ``Mroonga`` and so on."
468 msgstr "The following example uses ``.roonga`` as pattern. It matches ``Groonga``, ``Mroonga`` and so on."
469
470 msgid "In most cases, regular expression is evaluated sequentially. So it may be slow against many records."
471 msgstr "In most cases, regular expression is evaluated sequentially. So it may be slow against many records."
472
473 msgid "In some cases, Groonga evaluates regular expression by index. It's very fast. See :doc:`/reference/regular_expression` for details."
474 msgstr "In some cases, Groonga evaluates regular expression by index. It's very fast. See :doc:`/reference/regular_expression` for details."
475
476 msgid "Combined expression"
477 msgstr "Combined expression"
478
479 msgid "Here is available combined expression list."
480 msgstr "Here is available combined expression list."
481
482 msgid "Logical OR"
483 msgstr "Logical OR"
484
485 msgid "Its syntax is ``a OR b``."
486 msgstr "Its syntax is ``a OR b``."
487
488 msgid "``a`` and ``b`` are conditional expressions, conbinded expressions or assignment expressions."
489 msgstr "``a`` and ``b`` are conditional expressions, conbinded expressions or assignment expressions."
490
491 msgid "If at least one of ``a`` and ``b`` are matched, ``a OR b`` is matched."
492 msgstr "If at least one of ``a`` and ``b`` are matched, ``a OR b`` is matched."
493
494 msgid "The expression matches records that ``n_likes`` column value is greater than ``10`` or contain a word ``senna`` in ``content`` column value."
495 msgstr "The expression matches records that ``n_likes`` column value is greater than ``10`` or contain a word ``senna`` in ``content`` column value."
496
497 msgid "Logical AND"
498 msgstr "Logical AND"
499
500 msgid "Its syntax is ``a + b`` or just ``a b``."
501 msgstr "Its syntax is ``a + b`` or just ``a b``."
502
503 msgid "If both ``a`` and ``b`` are matched, ``a + b`` is matched."
504 msgstr "If both ``a`` and ``b`` are matched, ``a + b`` is matched."
505
506 msgid "You can specify ``+`` the first expression such as ``+a``. The ``+`` is just ignored."
507 msgstr "You can specify ``+`` the first expression such as ``+a``. The ``+`` is just ignored."
508
509 msgid "The expression matches records that ``n_likes`` column value is greater than or equal to ``10`` and contain a word ``groonga`` in ``content`` column value."
510 msgstr "The expression matches records that ``n_likes`` column value is greater than or equal to ``10`` and contain a word ``groonga`` in ``content`` column value."
511
512 msgid "Logical AND NOT"
513 msgstr "Logical AND NOT"
514
515 msgid "Its syntax is ``a - b``."
516 msgstr "Its syntax is ``a - b``."
517
518 msgid "If ``a`` is matched and ``b`` is not matched, ``a - b`` is matched."
519 msgstr "If ``a`` is matched and ``b`` is not matched, ``a - b`` is matched."
520
521 msgid "You can not specify ``-`` the first expression such as ``-a``. It's syntax error."
522 msgstr "You can not specify ``-`` the first expression such as ``-a``. It's syntax error."
523
524 msgid "The expression matches records that ``n_likes`` column value is greater than or equal to ``10`` and don't contain a word ``groonga`` in ``content`` column value."
525 msgstr "The expression matches records that ``n_likes`` column value is greater than or equal to ``10`` and don't contain a word ``groonga`` in ``content`` column value."
526
527 msgid "Grouping"
528 msgstr "Grouping"
529
530 msgid "Its syntax is ``(...)``. ``...`` is space separated expression list."
531 msgstr "Its syntax is ``(...)``. ``...`` is space separated expression list."
532
533 msgid "``(...)`` groups one ore more expressions and they can be processed as an expression. ``a b OR c`` means that ``a`` and ``b`` are matched or ``c`` is matched. ``a (b OR c)`` means that ``a`` and one of ``b`` and ``c`` are matched."
534 msgstr "``(...)`` groups one ore more expressions and they can be processed as an expression. ``a b OR c`` means that ``a`` and ``b`` are matched or ``c`` is matched. ``a (b OR c)`` means that ``a`` and one of ``b`` and ``c`` are matched."
535
536 msgid "The first expression doesn't use grouping. It matches records that ``n_likes:<5`` and ``content:@senna`` are matched or ``content:@fast`` is matched."
537 msgstr "The first expression doesn't use grouping. It matches records that ``n_likes:<5`` and ``content:@senna`` are matched or ``content:@fast`` is matched."
538
539 msgid "The second expression uses grouping. It matches records that ``n_likes:<5`` and one of ``content:@senna`` or ``content:@fast`` are matched."
540 msgstr "The second expression uses grouping. It matches records that ``n_likes:<5`` and one of ``content:@senna`` or ``content:@fast`` are matched."
541
542 msgid "Assignment expression"
543 msgstr "Assignment expression"
544
545 msgid "This section is for advanced users. Because assignment expression is disabled in ``--query`` option of :doc:`/reference/commands/select` by default. You need to specify ``ALLOW_COLUMN|ALLOW_UPDATE`` as ``--query_flags`` option value to enable assignment expression."
546 msgstr "This section is for advanced users. Because assignment expression is disabled in ``--query`` option of :doc:`/reference/commands/select` by default. You need to specify ``ALLOW_COLUMN|ALLOW_UPDATE`` as ``--query_flags`` option value to enable assignment expression."
547
548 msgid "Assignment expression in query syntax has some limitations. So you should use :doc:`/reference/grn_expr/script_syntax` instead of query syntax for assignment."
549 msgstr "Assignment expression in query syntax has some limitations. So you should use :doc:`/reference/grn_expr/script_syntax` instead of query syntax for assignment."
550
551 msgid "There is only one syntax for assignment expression. It's ``column:=value``."
552 msgstr "There is only one syntax for assignment expression. It's ``column:=value``."
553
554 msgid "``value`` is assigned to ``column``. ``value`` is always processed as string in query syntax. ``value`` is casted to the type of ``column`` automatically. It causes some limitations. For example, you cannot use boolean literal such as ``true`` and ``false`` for ``Bool`` type column. You need to use empty string for ``false`` but query syntax doesn't support ``column:=`` syntax."
555 msgstr "``value`` is assigned to ``column``. ``value`` is always processed as string in query syntax. ``value`` is casted to the type of ``column`` automatically. It causes some limitations. For example, you cannot use boolean literal such as ``true`` and ``false`` for ``Bool`` type column. You need to use empty string for ``false`` but query syntax doesn't support ``column:=`` syntax."
556
557 msgid "See :doc:`/reference/cast` about cast."
558 msgstr "See :doc:`/reference/cast` about cast."