Skip to content

Commit e2b2957

Browse files
committed
review comments
1 parent e1c952c commit e2b2957

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/reference/query-languages/sql/sql-like-rlike-operators.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,16 @@ Even though `RLIKE` is a valid option when searching or filtering in Elasticsear
9090

9191
When using `LIKE`/`RLIKE`, do consider using [full-text search predicates](/reference/query-languages/sql/sql-functions-search.md) which are faster, much more powerful and offer the option of sorting by relevancy (results can be returned based on how well they matched).
9292

93-
93+
<!--
94+
For example:
95+
96+
| | |
97+
| --- | --- |
98+
| **LIKE/RLIKE** | **QUERY/MATCH** |
99+
| ``foo LIKE 'bar'`` | ``MATCH(foo, 'bar')`` |
100+
| ``foo LIKE 'bar' AND tar LIKE 'goo'`` | ``MATCH('foo^2, tar^5', 'bar goo', 'operator=and')`` |
101+
| ``foo LIKE 'barr'`` | ``QUERY('foo: bar~')`` |
102+
| ``foo LIKE 'bar' AND tar LIKE 'goo'`` | ``QUERY('foo: bar AND tar: goo')`` |
103+
| ``foo RLIKE 'ba.*'`` | ``MATCH(foo, 'ba', 'fuzziness=AUTO:1,5')`` |
104+
| ``foo RLIKE 'b.{{1}}r'`` | ``MATCH(foo, 'br', 'fuzziness=1')`` |
105+
-->

0 commit comments

Comments
 (0)