Description Usage Arguments Value Examples
guardian_and
and guardian_or
provide
(respectively) the AND and OR logical operators. If you pass them your
query terms, it passes them back either separated (so that the Guardian API
knows to consider a match to any one term a match) or grouped (so that
the API only matches if every term appears).
1 2 3 |
... |
a vector of terms (or several vector of terms) |
a single string containing the terms, separated by the AND (,) or OR (|) separators used by the Guardian API.
1 2 3 4 5 | # Simple AND example
guardian_and("sausage", "mash")
# With ORs
guardian_or("sausage", "mash")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.