Skip to content

Commit

Permalink
[docs] Updated docs with a few examples of searching for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
icmurray committed Nov 21, 2011
1 parent 98f2a82 commit 3775845
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,11 @@ The ``Dataset`` and ``Revision`` data formats are as defined in `Model Formats`_
| q | Search-String || q=geodata | Criteria to search the dataset |
| | || q=government+sweden | fields for. URL-encoded search |
| | || q=%22drug%20abuse%22 | text. (You can also concatenate |
| | | | words with a '+' symbol in a |
| | || q=tags:"river pollution" | words with a '+' symbol in a |
| | | | URL.) Search results must contain|
| | | | all the specified words. |
| | | | all the specified words. You |
| | | | can also search within specific |
| | | | fields. |
+-----------------------+---------------+----------------------------------+----------------------------------+
| qjson | JSON encoded | ['q':'geodata'] | All search parameters can be |
| | options | | json-encoded and supplied to this|
Expand All @@ -336,8 +338,8 @@ The ``Dataset`` and ``Revision`` data formats are as defined in `Model Formats`_
+-----------------------+---------------+----------------------------------+----------------------------------+
|title, | Search-String || title=uk&tags=health | Search in a particular a field. |
|tags, notes, groups, | || department=environment | |
|author, maintainer, | | | |
|update_frequency, or | | | |
|author, maintainer, | || tags=health&tags=pollution | |
|update_frequency, or | || tags=river%20pollution | |
|any 'extra' field name | | | |
|e.g. department | | | |
+-----------------------+---------------+----------------------------------+----------------------------------+
Expand Down Expand Up @@ -563,4 +565,4 @@ This returns:
Action API
~~~~~~~~~~

See: :doc:`apiv3`
See: :doc:`apiv3`

0 comments on commit 3775845

Please sign in to comment.