@@ -46,22 +46,22 @@ should consist the type prefix, otherwise the default ``text`` type will
46
46
be used.
47
47
48
48
.. code-block :: none
49
- :linenos:
49
+
50
50
51
51
select text.field_name
52
52
select (text.first_field_name, text.second_field_name)
53
53
54
54
You can use fieldname aliasing, as known in SQL, for example:
55
55
56
56
.. code-block :: none
57
- :linenos:
57
+
58
58
59
59
select text.field_1 as name, text.field_2 as author
60
60
61
61
You can use fieldname aliasing, as known in SQL, for example:
62
62
63
63
.. code-block :: none
64
- :linenos:
64
+
65
65
66
66
select (text.field_1 as name, text.field_2 as author)
67
67
@@ -74,7 +74,7 @@ A list of entity aliases to search from. It can be one alias or group.
74
74
Examples:
75
75
76
76
.. code-block :: none
77
- :linenos:
77
+
78
78
79
79
from one_alias
80
80
from (first_alias, second_alias)
@@ -92,7 +92,7 @@ and, or
92
92
Syntax:
93
93
94
94
.. code-block :: none
95
- :linenos:
95
+
96
96
97
97
and field_type field_name operator value
98
98
or field_type field_name operator value
@@ -117,7 +117,7 @@ The ``order_by`` clause allows to sort results in ascending or descending order.
117
117
Syntax:
118
118
119
119
.. code-block :: none
120
- :linenos:
120
+
121
121
122
122
order_by field_type field_name direction
123
123
@@ -144,7 +144,7 @@ For String Fields
144
144
If search value is string, it must be quoted. Examples:
145
145
146
146
.. code-block :: none
147
- :linenos:
147
+
148
148
149
149
name ~ value
150
150
name ~ "string value"
@@ -154,7 +154,7 @@ For String Fields
154
154
Examples:
155
155
156
156
.. code-block :: none
157
- :linenos:
157
+
158
158
159
159
name !~ value
160
160
name !~ "string value"
@@ -165,7 +165,7 @@ For String Fields
165
165
whitespaces, it should be enclosed in quotes. Examples:
166
166
167
167
.. code-block :: none
168
- :linenos:
168
+
169
169
170
170
name like value
171
171
name like "string value"
@@ -176,7 +176,7 @@ For String Fields
176
176
contains whitespaces, it should be enclosed in quotes. Examples:
177
177
178
178
.. code-block :: none
179
- :linenos:
179
+
180
180
181
181
name notlike value
182
182
name notlike "string value"
@@ -188,7 +188,7 @@ For Numeric Fields
188
188
field value matches the specified value. Examples:
189
189
190
190
.. code-block :: none
191
- :linenos:
191
+
192
192
193
193
integer count = 100
194
194
decimal price = 12.5
@@ -198,7 +198,7 @@ For Numeric Fields
198
198
where the field value does not match the specified value. Examples:
199
199
200
200
.. code-block :: none
201
- :linenos:
201
+
202
202
203
203
integer count != 5
204
204
decimal price != 45
@@ -209,7 +209,7 @@ For Numeric Fields
209
209
specified value. Examples:
210
210
211
211
.. code-block :: none
212
- :linenos:
212
+
213
213
214
214
integer count >= 5
215
215
decimal price < 45
@@ -219,7 +219,7 @@ For Numeric Fields
219
219
the specified set of data. Examples:
220
220
221
221
.. code-block :: none
222
- :linenos:
222
+
223
223
224
224
integer count in (5, 10, 15, 20)
225
225
decimal price in (12.2, 55.25)
@@ -228,7 +228,7 @@ For Numeric Fields
228
228
in the specified set of data. Examples:
229
229
230
230
.. code-block :: none
231
- :linenos:
231
+
232
232
233
233
integer count !in (1, 3, 5)
234
234
decimal price !in (2.1, 55, 45.4)
@@ -241,7 +241,7 @@ User can combined operators in the search query with brackets.
241
241
Examples:
242
242
243
243
.. code-block :: none
244
- :linenos:
244
+
245
245
246
246
from oro_test where (owner ~ john and (integer count > 10 or float price = 10)) or (owner ~ mary and (integer count > 5 or float price = 150))
247
247
@@ -252,30 +252,30 @@ Query Examples
252
252
and where the price is greater than ``100 ``.
253
253
254
254
.. code-block :: none
255
- :linenos:
255
+
256
256
257
257
from demo_product where name ~ opportunity and double price > 100
258
258
259
259
- Search and return entity data plus the name and the description of demo
260
260
products.
261
261
262
262
.. code-block :: none
263
- :linenos:
263
+
264
264
265
265
select (name, description) from demo_product
266
266
267
267
- Search by all entities where the integer field count is not equal ``10 ``.
268
268
269
269
.. code-block :: none
270
- :linenos:
270
+
271
271
272
272
integer count != 10
273
273
274
274
- Search by all entities where text field ``all_text `` does not contain the
275
275
``opportunity `` string.
276
276
277
277
.. code-block :: none
278
- :linenos:
278
+
279
279
280
280
all_text !~ "opportunity"
281
281
0 commit comments