The search bar has simple and advanced capabilities. Please browse below to learn more.
Search string: existing
- Typing a word without quotes matches all variants of the word, e.g., existing matches exists and exist in any of the metadata fields.
Search string: “hydrologic science”
- Typing a phrase surrounded by quotes matches the whole phrase exactly, e.g. “hydrologic science” matches any resource with that exact phrase in its metadata fields.
Search operator: -Couch
- Preceding a word or phrase with - requires that the word not appear in the result, e.g. -Couch Couch is not mentioned in the metadata fields.
One can combine these forms to search for multiple requirements at the same time. For example:
The above queries search all resource metadata for the terms listed. For more precise searches, one may also specify the metadata field that contains a desired term.
Coverage Type and Availability Field Options:
- Availability published implies public, which implies discoverable.
- Coverage type box implies coverage type point, because the box center is recorded as a point.
- To select resources containing time series, use coverage_type:period.
- Resources containing multiple time series have coverage_type:box even though the data is for specific sites in the box.
One can also combine various kinds of queries in the search bar by separating them with spaces. For example, the query:
author:Tarboton author:Couch subject:CUAHSI
Will return resources for which Tarboton and Couch are both authors, and one subject is CUAHSI. For more advanced ways of combining requirements, see the section on query logic below.
Note: The Numeric Month/Numeric Day/4 character numeric year format is used.
The above queries select resources for which a specific date is mentioned. It is often more useful to specify a range of dates:
Date Range Operators
Note: Each one of these starts with a colon (:) and that a single : means “equal to”.
Multiple conditions may be separated by spaces on the query line. For example, the search string created>=2/1/2017 created<2/1/2018 selects resources that were created between 2/1/2017 and 1/31/2018.
Specifying geographic coordinates
There are two ways in HydroShare that geographic coordinates are used, both as the coordinates of a point on the earth and as coordinates of a box in which data is recorded. Additionally, the center of each box is recorded as a point. Thus all resources with box coverages also have point coverages, that point being the center of the box.
To specify a region, one can combine these. For example, the northwest corner of Nevada is listed as 42.05N, -120.06E, while the southeast corner is approximately 34.96N, -113.99E. Thus, to select those resources whose boxes are contained within Nevada, one could specify:
westlimit>=-120.06 eastlimit<=-113.99 northlimit<=42.05 southlimit>=34.96
Compare this with:
east>=-120.06 east<=-113.99 north<=42.05 north>=34.96
which instead selects those resources whose box centers are within Nevada.
By default, query parts are connected by a logical operator AND, in the sense that
Means the same thing as:
east>=-120.06 AND east<=-113.99
Other logical operators include OR, NOT, and -.
For example, the complement of the above query is:
east<=-120.06 OR east>=-113.99
Which selects resources whose centers are outside Nevada in terms of longitude.
Parentheses can be used to combine complex expressions. For example, the previous query could be written as:
NOT ( east>=-120.06 AND east<=-113.99 )