search: Search musicbrainz database

Description Usage Arguments Value Functions References Examples

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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

References

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 Oct. 21, 2020, 3:06 p.m.