Difference between revisions of "MusicBrainz API/Search/AnnotationSearch"

From MusicBrainz Wiki
 
Line 1: Line 1:
 
====Search Fields====
 
====Search Fields====
The [[Annotation|annotation]] index contains the following fields you can search:
+
The [[Annotation]] index contains the following fields you can search
 
{| border="1" class="wikitable sortable"
 
{| border="1" class="wikitable sortable"
 
|-
 
|-
! Field !! Description
+
! Field !! Description
 +
 
 
|-
 
|-
| name  || the annotated entity's name or title
+
| entity || the annotated entity's MBID
 
|-
 
|-
| entity || the annotated entity's MBID
+
| id || the numeric ID of the annotation (e.g. [https://musicbrainz.org/artist/c130b0fb-5dce-449d-9f40-1437f889f7fe/annotation/703027 703027])
 +
|-
 +
| name || the annotated entity's name or title (diacritics are ignored)
 
|-
 
|-
| text   || the annotation's content (includes wiki formatting)
+
| text || the annotation's content (includes [[Annotation#Wiki_formatting|wiki formatting]])
 
|-
 
|-
| type   || the annotated entity's entity type
+
| type || the annotated entity's entity type
 
|}
 
|}
Query terms without a field specifier will search the ''name'', ''text'' and ''type'' fields.
+
 
 +
If you don't specify a field, the terms will be searched for in the ''name'', ''text'' and ''type'' fields.

Latest revision as of 14:43, 22 January 2021

Search Fields

The Annotation index contains the following fields you can search

Field Description
entity the annotated entity's MBID
id the numeric ID of the annotation (e.g. 703027)
name the annotated entity's name or title (diacritics are ignored)
text the annotation's content (includes wiki formatting)
type the annotated entity's entity type

If you don't specify a field, the terms will be searched for in the name, text and type fields.