MusicBrainz API/Search/AreaSearch: Difference between revisions
From MusicBrainz Wiki
< MusicBrainz API | Search
Jump to navigationJump to search
Reosarevok (talk | contribs) mNo edit summary |
|||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
ID ("_id", MusicBrainzFieldTypes.TEXT_STORED_ANALYZED_NO_NORMS, new KeywordAnalyzer()), |
|||
AREA_ID ("aid", MusicBrainzFieldTypes.TEXT_STORED_NOT_ANALYZED_NO_NORMS, new KeywordAnalyzer()), |
|||
ALIAS ("alias", MusicBrainzFieldTypes.TEXT_NOT_STORED_ANALYZED, new MusicbrainzWithPosGapAnalyzer()), |
|||
AREA ("area", MusicBrainzFieldTypes.TEXT_STORED_ANALYZED, new MusicbrainzAnalyzer()), |
|||
BEGIN ("begin", MusicBrainzFieldTypes.TEXT_NOT_STORED_NOT_ANALYZED_NO_NORMS, new KeywordAnalyzer()), |
|||
END ("end", MusicBrainzFieldTypes.TEXT_NOT_STORED_NOT_ANALYZED_NO_NORMS, new KeywordAnalyzer()), |
|||
ENDED ("ended", MusicBrainzFieldTypes.TEXT_NOT_STORED_ANALYZED_NO_NORMS, new CaseInsensitiveKeywordAnalyzer()), |
|||
SORTNAME ("sortname", MusicBrainzFieldTypes.TEXT_STORED_ANALYZED, new MusicbrainzAnalyzer()), |
|||
ISO ("iso", MusicBrainzFieldTypes.TEXT_NOT_STORED_ANALYZED_NO_NORMS, new CaseInsensitiveKeywordAnalyzer()), |
|||
ISO1 ("iso1", MusicBrainzFieldTypes.TEXT_NOT_STORED_ANALYZED_NO_NORMS, new CaseInsensitiveKeywordAnalyzer()), |
|||
ISO2 ("iso2", MusicBrainzFieldTypes.TEXT_NOT_STORED_ANALYZED_NO_NORMS, new CaseInsensitiveKeywordAnalyzer()), |
|||
ISO3 ("iso3", MusicBrainzFieldTypes.TEXT_NOT_STORED_ANALYZED_NO_NORMS, new CaseInsensitiveKeywordAnalyzer()), |
|||
TYPE ("type", MusicBrainzFieldTypes.TEXT_NOT_STORED_ANALYZED_NO_NORMS, new CaseInsensitiveKeywordAnalyzer()), |
|||
AREA_STORE ("areastore", MusicBrainzFieldTypes.TEXT_STORED_NOT_INDEXED), |
|||
====Search Fields==== |
====Search Fields==== |
||
The |
The [[Area]] index contains the following fields you can search |
||
{| border="1" class="wikitable sortable" |
{| border="1" class="wikitable sortable" |
||
|- |
|- |
||
! Field !! Description |
|||
|- |
|||
| aid || the area's MBID |
|||
|- |
|||
| alias || (part of) any [[Aliases|alias]] attached to the artist (diacritics are ignored) |
|||
|- |
|||
| area || (part of) the area's name (diacritics are ignored) |
|||
|- |
|- |
||
| |
| areaaccent || (part of) the area's name (with the specified diacritics) |
||
|- |
|- |
||
| |
| begin || the area's begin date (e.g. "1980-01-22") |
||
|- |
|- |
||
| |
| comment || (part of) the area's disambiguation comment |
||
|- |
|- |
||
| |
| end || the area's end date (e.g. "1980-01-22") |
||
|- |
|- |
||
| ended || a boolean flag (true/false) indicating whether or not the area has ended (is no longer current) |
|||
| end || area end date |
|||
|- |
|- |
||
| iso || an [[wikipedia:ISO_3166|ISO 3166-1, 3166-2 or 3166-3]] code attached to the area |
|||
| ended || area ended |
|||
|- |
|- |
||
| iso1 || an [[wikipedia:ISO_3166|ISO 3166-1]] code attached to the area |
|||
| sortname || area sort name |
|||
|- |
|- |
||
| iso2 || an [[wikipedia:ISO_3166|ISO 3166-2]] code attached to the area |
|||
| iso || area iso1, iso2 or iso3 codes |
|||
|- |
|- |
||
| iso3 || an [[wikipedia:ISO_3166|ISO 3166-3]] code attached to the area |
|||
| iso1 || area iso1 codes |
|||
|- |
|- |
||
| sortname || equivalent to name (areas no longer have separate sort names) |
|||
| iso2 || area iso3 codes |
|||
|- |
|- |
||
| tag || (part of) a tag attached to the area |
|||
| iso3 || area iso3 codes |
|||
|- |
|- |
||
| |
| type || the area's [[Area#Type|type]] |
||
|} |
|} |
||
If you don't specify a field, the terms will be searched for in the ''area'' field. |
|||
Area search terms with no fields specified search the area, sortname and alias fields. |
Latest revision as of 12:19, 22 January 2021
Search Fields
The Area index contains the following fields you can search
Field | Description |
---|---|
aid | the area's MBID |
alias | (part of) any alias attached to the artist (diacritics are ignored) |
area | (part of) the area's name (diacritics are ignored) |
areaaccent | (part of) the area's name (with the specified diacritics) |
begin | the area's begin date (e.g. "1980-01-22") |
comment | (part of) the area's disambiguation comment |
end | the area's end date (e.g. "1980-01-22") |
ended | a boolean flag (true/false) indicating whether or not the area has ended (is no longer current) |
iso | an ISO 3166-1, 3166-2 or 3166-3 code attached to the area |
iso1 | an ISO 3166-1 code attached to the area |
iso2 | an ISO 3166-2 code attached to the area |
iso3 | an ISO 3166-3 code attached to the area |
sortname | equivalent to name (areas no longer have separate sort names) |
tag | (part of) a tag attached to the area |
type | the area's type |
If you don't specify a field, the terms will be searched for in the area field.