Skip to content

Commit

Permalink
docs: add note in search.rst about difference in syntax between tpl a…
Browse files Browse the repository at this point in the history
…nd stored query
  • Loading branch information
mworrell committed Aug 5, 2022
1 parent 06a5467 commit c052357
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion doc/developer-guide/search.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,20 @@ http://zotonic.com/feed/search?cat=documentation&text=filter
``mod_atom_feed`` automatically sorts on last-modified date,
``api/search`` doesn't.


Query arguments
---------------

.. note::

All the examples are for *templates*. If you use the queries in a
saved query, by editing the text field in the admin, then you have
to exclude the quotes. Also exclude the quotes if you use the query
terms as an argument for an URL (like with the search example above).

For example, the term ``sort='-rsc.modified'`` will become ``sort=-rsc.modified``.
(note that the quotes are removed).


authoritative
^^^^^^^^^^^^^

Expand Down

0 comments on commit c052357

Please sign in to comment.