Skip to content

Commit

Permalink
[Doc] Fix wrong example in FilterQuery syntax
Browse files Browse the repository at this point in the history
Field values are started with `:` not `=`
  • Loading branch information
sstok committed Jan 26, 2017
1 parent 17b0336 commit 0234c58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/input/filter_query.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,25 +235,25 @@ to mark the group as logical AND.

.. code-block:: php
&(field1=values; field2=values);
&(field1: values; field2: values);
To change a group and make it OR'ed (at least one field must give a positive
match), prefix the group with an ``*`` character.

.. code-block:: php
*(field1=values; field2=values);
*(field1: values; field2: values);
If you want to head-group (the condition itself) OR'ed or AND (default) use
``*`` or ``&`` as the first character in the condition.

.. code-block:: php
*field1=values; field2=values;
*field1: values; field2: values;
.. code-block:: php
&field1=values; field2=values;
&field1: values; field2: values;
.. caution::

Expand Down

0 comments on commit 0234c58

Please sign in to comment.