Query search examples

Basic information

Instance sample queries

Example category

Query

Results

Example category

Query

Results

Subjects

subjects == "*--drama"

Matches instances where “drama” appears as a subdivision

Subjects

subjects == “drama*”

Matches instances where a subject heading begins with drama

Subjects

subjects == “drama”

Matches instances where “drama” appears anywhere in the subject

Languages

languages == "[]"

Matches instances where language field is empty

Holdings sample queries

Example category

Query

Results

Example category

Query

Results

Suppressed holdings

holdings.discoverySuppress = "true"

Matches instances which have holdings that are suppressed from discovery

Notes

holdings.notes.note ="This collection has been digitized for on-site access. No publication rights."

Matches instances which have holdings that have a note equal to “This collection has been digitized for on-site access. No publication rights”

Item sample queries

Example category

Query

Results

Example category

Query

Results

Electronic access

item.electronicAccess.publicNote = "table of contents"

Matches instances with any items that have “table of contents” in the public note of the electronic access data

Electronic access

item.electronicAccess.uri= "*purl.access.gpo*"

Matches instances with any items that have “purl.access.gpo” somewhere in the URI of the electronic access data

Nesting queries

Example category

Query

Results

Example category

Query

Results

Instance subjects and titles

(subjects == "Ontario" OR subjects == "alberta") AND title all "government"

Matches instances about Ontario OR Alberta with a title that contains “government'

Instance subjects and titles

subjects all "Ontario" AND subjects all "*--Maps." AND title all "government"

Matches instances about Ontario with a subdivision of maps and “government” in the title

Queries combining record types

Example category

Query

Results

Example category

Query

Results

Instance subjects and holdings permanent location

subjects all "Ontario" AND subjects all "*--Maps." AND title all "government" AND holdings.permanentLocationId = "24be4408-fb6f-4a44-9c91-ecd4982d7849"

Matches instances about Ontario with a subdivision of maps and “government” in the title with holdings located in permanent location “UC/HP/JRL/MapCl”

Holdings permanent location and item status

subjects all "Ontario" AND subjects all "*--Maps." AND title all "government" AND holdings.permanentLocationId = "24be4408-fb6f-4a44-9c91-ecd4982d7849" AND item.status.name = "Missing"

Matches instances about Ontario with a subdivision of maps and “government” in the title with holdings located in permanent location “UC/HP/JRL/MapCl” and missing items

Suppressed holdings

holdings.discoverySuppress = "true" AND discoverySuppress = "false"

Matches instances that are NOT suppressed but have holdings that ARE suppressed