...
mod-search: https://github.com/folio-org/mod-search/blob/master/README.md#instance-search-options
CQL documentation: https://dev.folio.org/faqs/explain-cql/
Operators:
all: matches records where each term appear in the field
any: matches records where any terms appear in the field
adj: matches if all words of the query string exist consecutively in that order, there may be any whitespace and punctuation in between.
= : synonym for “adj”
== : exact match
Booleans
Can combine search terms with AND, OR, NOT
Supports
Truncation with * wildcardhttps://github.com/folio-org/raml-module-builder?tab=readme-ov-file#cql-contextual-query-language
Instance sample queries
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 |
| Matches instances where language field is empty |
Holdings sample queries
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” |
...