Kouhei Sutou
null+****@clear*****
Thu Jan 26 08:29:19 JST 2017
Kouhei Sutou 2017-01-26 08:29:19 +0900 (Thu, 26 Jan 2017) New Revision: 3274c1b08e68adb308d2655c8902397973fd1618 https://github.com/groonga/groonga/commit/3274c1b08e68adb308d2655c8902397973fd1618 Message: doc query-syntax: update reference Modified files: doc/source/news/2.x.rst doc/source/reference/grn_expr/query_syntax.rst Modified: doc/source/news/2.x.rst (+9 -7) =================================================================== --- doc/source/news/2.x.rst 2017-01-25 23:43:16 +0900 (c730d6d) +++ doc/source/news/2.x.rst 2017-01-26 08:29:19 +0900 (0d31c96) @@ -379,14 +379,16 @@ Improvements argument in northern hemisphere. [#1386] [#1387] [#1388] [#1389] * [doc] Added a document about :doc:`/development/travis-ci` integration. * [doc] Added descriptions about full text search and phrase search. - See :ref:`full-text-search-condition` and :ref:`phrase-search-condition` - about detail. -* [doc] Added descriptions about comparison conditions. - See :ref:`conditional-expression` about detail. + See :ref:`query-syntax-full-text-search-condition` and + :ref:`query-syntax-phrase-search-condition` about detail. +* [doc] Added descriptions about comparison conditions. See + :ref:`query-syntax-conditional-expression` about detail. * [doc] Added examples for :doc:`/reference/grn_expr/query_syntax`. -* [doc] Added descriptions about :ref:`combined-expression`. -* [doc] Added descriptions about :ref:`prefix-search-condition` and - :ref:`suffix-search-condition`. +* [doc] Added descriptions about + :ref:`query-syntax-combined-expression`. +* [doc] Added descriptions about + :ref:`query-syntax-prefix-search-condition` and + :ref:`query-syntax-suffix-search-condition`. * Supported suffix search by index. * [doc] Added a document about :doc:`/reference/grn_expr`. * [munin] Supported JSON library installed by RubyGems [GitHub#17] Modified: doc/source/reference/grn_expr/query_syntax.rst (+49 -7) =================================================================== --- doc/source/reference/grn_expr/query_syntax.rst 2017-01-25 23:43:16 +0900 (4ea4776) +++ doc/source/reference/grn_expr/query_syntax.rst 2017-01-26 08:29:19 +0900 (d1416ad) @@ -107,14 +107,14 @@ quoted ``"Alice's brother (Bob)"`` or ``'Alice\'s brother (Bob)'``. from database. If you can't do intended search by Groonga, confirm whether special character is escaped properly. -.. _conditional-expression: +.. _query-syntax-conditional-expression: Conditional expression ---------------------- Here is available conditional expression list. -.. _full-text-search-condition: +.. _query-syntax-full-text-search-condition: Full text search condition ^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -148,7 +148,7 @@ The expression matches records that contain a word ``fast`` in ``content`` column is the default match column. -.. _phrase-search-condition: +.. _query-syntax-phrase-search-condition: Phrase search condition ^^^^^^^^^^^^^^^^^^^^^^^ @@ -182,6 +182,8 @@ The expression matches records that contain a phrase ``I started`` in ``content`` column is the default match column. +.. _query-syntax-full-text-search-condition-with-explicit-match-column: + Full text search condition (with explicit match column) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -249,7 +251,7 @@ 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. -.. _prefix-search-condition: +.. _query-syntax-prefix-search-condition: Prefix search condition ^^^^^^^^^^^^^^^^^^^^^^^ @@ -283,7 +285,7 @@ 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. -.. _suffix-search-condition: +.. _query-syntax-suffix-search-condition: Suffix search condition ^^^^^^^^^^^^^^^^^^^^^^^ @@ -340,6 +342,8 @@ The expression matches records that have value that ends with ``んが`` in ``content`` column value. ``ぐるんが`` and ``むるんが`` are matched with the expression. +.. _query-syntax-equal-condition: + Equal condition ^^^^^^^^^^^^^^^ @@ -359,6 +363,8 @@ Here is a simple example. The expression matches records that ``_key`` column value is equal to ``Groonga``. +.. _query-syntax-not-equal-condition: + Not equal condition ^^^^^^^^^^^^^^^^^^^ @@ -378,6 +384,8 @@ Here is a simple example. The expression matches records that ``_key`` column value is not equal to ``Groonga``. +.. _query-syntax-less-than-condition: + Less than condition ^^^^^^^^^^^^^^^^^^^ @@ -402,6 +410,8 @@ Here is a simple example. The expression matches records that ``n_likes`` column value is less than ``10``. +.. _query-syntax-greater-than-condition: + Greater than condition ^^^^^^^^^^^^^^^^^^^^^^ @@ -426,6 +436,8 @@ Here is a simple example. The expression matches records that ``n_likes`` column value is greater than ``10``. +.. _query-syntax-less-than-or-equal-condition: + Less than or equal to condition ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -451,6 +463,8 @@ Here is a simple example. The expression matches records that ``n_likes`` column value is less than or equal to ``10``. +.. _query-syntax-greater-than-or-equal-condition: + Greater than or equal to condition ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -476,7 +490,35 @@ Here is a simple example. The expression matches records that ``n_likes`` column value is greater than or equal to ``10``. -.. _query-regular-expression-condition: +.. _query-syntax-near-search-condition: + +Near search condition +^^^^^^^^^^^^^^^^^^^^^ + +TODO + +.. _query-syntax-similar-search-condition: + +Similar search condition +^^^^^^^^^^^^^^^^^^^^^^^^ + +TODO + +.. _query-syntax-prefix-search-condition: + +Prefix search condition +^^^^^^^^^^^^^^^^^^^^^^^ + +TODO + +.. _query-syntax-suffix-search-condition: + +Suffix search condition +^^^^^^^^^^^^^^^^^^^^^^^ + +TODO + +.. _query-syntax-regular-expression-condition: Regular expression condition ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -502,7 +544,7 @@ be slow against many records. In some cases, Groonga evaluates regular expression by index. It's very fast. See :doc:`/reference/regular_expression` for details. -.. _combined-expression: +.. _query-syntax-combined-expression: Combined expression ------------------- -------------- next part -------------- HTML����������������������������...Download