Knowledge Commons

Help & Support

Searching KCWorks

KCWorks has a powerful search, but you need to know a few things to make the most use of it. 

You can find more complete information on search syntax and strategy in our developer documentation. This search guide is also linked on our main search page on KCWorks.

Simple search (one or multiple terms)

Example: open science

Results will match records with the terms open or science in any field. Note that stemming is applied so e.g. science will also match sciences. Search results are ranked according to an algorithm that takes your query terms into account.

You can require presence of both terms using either the + or AND operator:

Examples: +open +science or open AND science

You can require absence of one or more terms using either the – or NOT operator:

Examples: -open +science or NOT open AND science

Phrase Search

Example: "open science"

Results will match records with the phrase open science in any field: those words in order and next to each other. Phrase queries still use text analysis (for example, stemming may apply); they are not character-for-character exact matches.

For a single word, quoting usually does not change which records match. draw and "draw" (or title:draw and title:"draw") typically return the same hit set, because a one-term phrase query and a term query both require that analyzed token. Quotes matter mainly for multi-word phrases. The same applies with field aliases such as title:"open science".

Field Search

Field search

Prefer short aliases for common fields. For example:

Example: title:open

Results will match records with the term open in the title (including additional titles). Full OpenSearch paths still work (e.g. metadata.title:open). If you want to search for multiple terms in a field you must group the terms using parenthesis:

Example: title:(open science) or, for a phrase in the title only: title:"open science"

Quotes: Use quotes for multi-word phrases on a field (words in order, adjacent). For a single word, quoted and unquoted forms usually match the same records. Quotes do not require a character-for-character match of the stored value. For precise identifier lookups, use field aliases such as doi: or issn:.

See the field aliases list below. For the full indexed metadata schema, see the InvenioRDM documentation.

Field Aliases

These short names are rewritten to the underlying indexed fields before the query is sent to OpenSearch. Some aliases search more than one field and match if any of those fields hit (for example title, author, url, collection).

Examples: author:smith, keyword:methodology, collection:humanities, doi:10.1234/example.

CategoryAliases
Identifiersid, recid, doi, identifier, identifiers
Accessowner, access, access_status, published, is_published
Bibliographictitle, description, abstract, additional_description, additional_descriptions, publisher, publication_date, date, version, language, languages, format, formats, size, sizes, reference, references, place
Typetype, resource_type
URLsurl, alternate_url, identifier_url, related_url, publication_url, meeting_url, repository_url, repository
People / Organizationscontributor, contributors, creator, creators, author, authors, affiliation, affiliations, funder, funding, award, ror, organization, institution, university, sponsoring_institution, sponsor
Subjects / Tagssubject, subjects (controlled subjects); keyword, keywords (depositor-defined tags)
Thesis / Degreedegree, thesis_type, department, thesis_department, discipline, thesis_university (there is no one-word thesis alias)
Filesfile, filename, file_type
Collectionscollection, collections
Journaljournal, journal_title, journal_volume, journal_issue, issn
Meeting / Conferencemeeting, meeting_title, meeting_acronym, meeting_dates, conference
Imprint / Bookimprint, book_title, book, isbn, edition (imprint edition and custom_fields.kcr:edition), chapter, series
Software (CodeMeta)code_repository, repository, programming_language, development_status
Othernote, notes, course, project, ai, ai_used, ai_description

Combined simple, phrase or field search

Example: +title:"open science" -title:policy or e.g. title:(-open +science)

You can combine simple, phrase and field search to construct advanced search queries.

Range Search

Range search

Example: metadata.publication_date:[2017 TO 2018] (note, you must capitalize TO).

Results will match any record with a publication date between 2017-01-01 and 2018-01-01 (both dates inclusive).

Note that, partial dates are expanded to full dates, e.g.:

  • 2017 is expanded to 2017-01-01
  • 2017-06 is expanded to 2017-06-01

Use square brackets ([]) for inclusive ranges and use curly brackets ({}) for exclusive ranges, e.g.:

  • [2017 TO 2018} is equivalent to [2017-01-01 TO 2017-12-31] because of date expansion and exclusive upper bound.

Examples of other ranges:

  • metadata.publication_date:{* TO 2017-01-01}: All days until 2017.
  • metadata.publication_date:[2017-01-01 TO *]: All days from 2017.

Ranking and Sorting

By default all searches are sorted according to an internal ranking algorithm that scores each match against your query. In both the user interface and REST API, it’s possible to sort the results by:

  • Most recent
  • Best match
  • Oldest
  • Most viewed
  • Most downloaded

Regular Expressions

Regular expressions are a powerful pattern matching language that allow to search for specific patterns in a field. For instance if we wanted to find all records with a DOI-prefix 10.5281 we could use a regular expression search:

Example: metadata.subjects.identifier:/03yrm5c2[1,6]/

Careful, the regular expression must match the entire field value. See the regular expression syntax for further details.

Missing Values

Missing values

It is possible to search for records that either are missing a value or have a value in a specific field using the _exists_ and NOT _exists_ field names.

Example: NOT _exists_:metadata.additional_titles (all records without metadata.additional_titles)

Example: _exists_:metadata.creators (all records with metadata.creators)

Advanced Concepts

Boosting

You can use the boost operator ^ when one term is more relevant than another. For instance, you can search for all records with the phrase open science in either title or description field, but rank records with the phrase in the title field higher:

Example: title:"open science"^5 description:"open science"

Fuzziness

You can search for terms similar to but not exactly like your search term using the fuzzy operator ~.

Example: oepn~

Results will match records with terms similar to oepn which would e.g. also match open.

Proximity Searches

A phrase search like “open science” by default expect all terms in exactly the same order, and thus for instance would not match a record containing the phrase “open access and science”. A proximity search allows that the terms are not in the exact order and may include other terms in between. The degree of flexibility is specified by an integer afterwards:

Example: "open science"~5

Wildcards

You can use wildcards in search terms to replace a single character (using ? operator) or zero or more characters (using * operator).

Example: ope? scien*

Wildcard searches can be slow and should normally be avoided if possible.