Logical operators AND, OR, and NOT
The logical operators AND
, OR
, and NOT
can all be used to restrict results returned from a search.
AND
Using the operator AND
is not necessary while searching for multiple terms because AND
is the default operator for searches on data.world.
The search string colony collapse returns anything with the words colony and collapse somewhere in the search fields.
OR
The OR
operator returns results that have either one string or the other. The OR
operator can be used multiple times in a search string.
Sample syntax for OR
operator:
Note
All the links in the following examples open search results in the data.world open data community.
For single term searches use:
For multiple terms searches use:
NOT
Use the NOT operator to eliminate items from your search results.
Note
All the links in the following examples open search results in the data.world open data community.
For example:
wildlife NOT refuge: Returns results that match "wildlife" and do not contain "refuge".
wildlife NOT refuge NOT "us-doi-gov": Returns results that match "wildlife" and do not contain "refuge" or "us-doi-gov".
Note
NOT
, like OR
, cannot be used in complex searches (combined with AND
or OR
) without specifying the grouping of the search terms.