MusicBrainz API/Search/AreaSearch: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(Created page with "====Search Fields==== The area index contains the following fields you can search: {| border="1" class="wikitable sortable" |- | '''field''' || '''Description''' |- | al...")
 
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 area index contains the following fields you can search:
The area index contains the following fields you can search:
Line 5: Line 20:
| '''field''' || '''Description'''
| '''field''' || '''Description'''
|-
|-
| alias || the aliases/misspellings for this label
| aid || the area ID
|-
|-
| area || label area
| alias || the aliases/misspellings for this area
|-
|-
| begin || label founding date
| area || area name
|-
|-
| begin || area begin date
| code || label code (only the figures part, i.e. without "LC")
|-
|-
| end || area end date
| comment || label comment to differentiate similar labels
|-
|-
| ended || area ended
| country || The [http://www.iso.org/iso/home/standards/country_codes/iso-3166-1_decoding_table.htm two letter country code] of the label country
|-
|-
| end || label dissolution date
| sortname || area sort name
|-
|-
| ended || true if know ended even if do not know end date
| iso || area iso1, iso2 or iso3 codes
|-
|-
| ipi || ipi
| iso1 || area iso1 codes
|-
|-
| label || label name
| iso2 || area iso3 codes
|-
|-
| iso3 || area iso3 codes
| labelaccent || name of the label with any accent characters retained
|-
|-
| laid || MBID of the label
| type || the aliases/misspellings for this label
|-
| sortname || label sortname
|-
| type || label type
|-
| tag || folksonomy tag
|}
|}



Revision as of 15:08, 13 June 2013

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

The area index contains the following fields you can search:

field Description
aid the area ID
alias the aliases/misspellings for this area
area area name
begin area begin date
end area end date
ended area ended
sortname area sort name
iso area iso1, iso2 or iso3 codes
iso1 area iso1 codes
iso2 area iso3 codes
iso3 area iso3 codes
type the aliases/misspellings for this label

Label search terms with no fields specified search the label, sortname and alias fields.