HAYASHI Kentaro
null+****@clear*****
Mon Jul 22 17:02:36 JST 2013
HAYASHI Kentaro 2013-07-22 17:02:36 +0900 (Mon, 22 Jul 2013) New Revision: 58932a604399383d2d4827e51685a3ecd270bfa8 https://github.com/groonga/groonga/commit/58932a604399383d2d4827e51685a3ecd270bfa8 Message: doc en: add notification about the escape in command line Modified files: doc/source/reference/grn_expr/query_syntax.txt Modified: doc/source/reference/grn_expr/query_syntax.txt (+10 -0) =================================================================== --- doc/source/reference/grn_expr/query_syntax.txt 2013-07-22 15:18:50 +0900 (efd997d) +++ doc/source/reference/grn_expr/query_syntax.txt 2013-07-22 17:02:36 +0900 (0245f30) @@ -93,6 +93,16 @@ You need escape ``'`` as ``\'`` in ``'...'`` quote syntax. For example, ``Alice's brother (Bob)`` can be quoted ``"Alice's brother (Bob)"`` or ``'Alice\'s brother (Bob)'``. +.. note:: + + There is a 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. + .. _conditional-expression: Conditional expression -------------- next part -------------- HTML����������������������������...Download