search: Search musicbrainz database

searchR Documentation

Description

Perform free text search in the musicbrainz database. Scope of each of the 'search' functions is limited to specific type of entity. Search string can be composed using Apache Lucene search syntax, including specifying relations between entities explicitly.

Usage

search_annotations(query, limit = NULL, offset = NULL, strict = FALSE)

search_areas(query, limit = NULL, offset = NULL, strict = FALSE)

search_artists(query, limit = NULL, offset = NULL, strict = FALSE)

search_events(query, limit = NULL, offset = NULL, strict = FALSE)

search_instruments(query, limit = NULL, offset = NULL, strict = FALSE)

search_labels(query, limit = NULL, offset = NULL, strict = FALSE)

search_places(query, limit = NULL, offset = NULL, strict = FALSE)

search_recordings(query, limit = NULL, offset = NULL, strict = FALSE)

search_release_groups(query, limit = NULL, offset = NULL, strict = FALSE)

search_releases(query, limit = NULL, offset = NULL, strict = FALSE)

search_series(query, limit = NULL, offset = NULL, strict = FALSE)

search_works(query, limit = NULL, offset = NULL, strict = FALSE)

Arguments

query

search string.

limit

limit number of hits returned from database, defaults to NULL

offset

number of hits to skip, defaults to NULL

strict

return only exact matches with score of 100, defaults to FALSE

Value

a tibble of entities of interest

Functions

  • search_annotations(): Search annotations

  • search_areas(): Search areas

  • search_artists(): Search artists

  • search_events(): Search events

  • search_instruments(): Search instrument

  • search_labels(): Search labels

  • search_places(): Search places

  • search_recordings(): Search recordings

  • search_release_groups(): Search release groups (e.g. albums)

  • search_releases(): Search releases

  • search_series(): Search series

  • search_works(): Search works

References

https://lucene.apache.org/core/4_3_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description

Examples

search_annotations("concerto")

# return only first entry
search_areas("Oslo",limit=1)

# skip first 25 entries (can be used as a follow-up query)
search_artists("George Michael", offset=25)

# return only events precisely matching given name
search_events("The Prince\'s Trust", strict=TRUE)


dmi3kno/musicbrainz documentation built on Dec. 31, 2024, 12:33 a.m.