Skip to content

Commit 78ffdc8

Browse files
committed
Update VALID_SEARCH_FIELDS to reflect the current search schema
There are many new fields that have been added that can be searched. Make sure that we don't stop people from using them Signed-off-by: Alastair Porter <alastair@porter.net.nz>
1 parent f22ca1a commit 78ffdc8

File tree

1 file changed

+32
-34
lines changed

1 file changed

+32
-34
lines changed

musicbrainzngs/musicbrainz.py

+32-34
Original file line numberDiff line numberDiff line change
@@ -108,60 +108,58 @@
108108
'entity', 'name', 'text', 'type'
109109
],
110110
'area': [
111-
'aid', 'area', 'alias', 'begin', 'comment', 'end', 'ended',
112-
'iso', 'iso1', 'iso2', 'iso3', 'sortname', 'type'
111+
'aid', 'alias', 'area', 'areaaccent', 'begin', 'comment', 'end',
112+
'ended', 'iso', 'iso1', 'iso2', 'iso3', 'sortname', 'tag', 'type'
113113
],
114114
'artist': [
115-
'arid', 'artist', 'artistaccent', 'alias', 'begin', 'comment',
116-
'country', 'end', 'ended', 'gender', 'ipi', 'sortname', 'tag', 'type',
117-
'area', 'beginarea', 'endarea'
115+
'alias', 'area', 'arid', 'artist', 'artistaccent', 'begin', 'beginarea',
116+
'comment', 'country', 'end', 'endarea', 'ended', 'gender',
117+
'ipi', 'isni', 'primary_alias', 'sortname', 'tag', 'type'
118118
],
119119
'event': [
120-
'alias', 'aid', 'area', 'arid', 'artist', 'comment', 'eid', 'event',
121-
'pid', 'place', 'type', 'tag'
120+
'aid', 'alias', 'area', 'arid', 'artist', 'begin', 'comment', 'eid',
121+
'end', 'ended', 'event', 'eventaccent', 'pid', 'place', 'tag', 'type'
122122
],
123123
'instrument': [
124124
'alias', 'comment', 'description', 'iid', 'instrument',
125-
'type', 'tag'
125+
'instrumentaccent', 'tag', 'type'
126126
],
127127
'label': [
128-
'alias', 'begin', 'code', 'comment', 'country', 'end', 'ended',
129-
'ipi', 'label', 'labelaccent', 'laid', 'sortname', 'type', 'tag',
130-
'area'
128+
'alias', 'area', 'begin', 'code', 'comment', 'country', 'end', 'ended',
129+
'ipi', 'label', 'labelaccent', 'laid', 'release_count', 'sortname',
130+
'tag', 'type'
131131
],
132132
'place': [
133-
'pid', 'address', 'alias', 'area', 'begin', 'comment', 'end', 'ended',
134-
'lat', 'long', 'place', 'placeaccent', 'type'
133+
'address', 'alias', 'area', 'begin', 'comment', 'end', 'ended', 'lat', 'long',
134+
'pid', 'place', 'placeaccent', 'type'
135135
],
136136
'recording': [
137-
'arid', 'artist', 'artistname', 'creditname', 'comment',
138-
'country', 'date', 'dur', 'format', 'isrc', 'number',
139-
'position', 'primarytype', 'qdur', 'recording',
140-
'recordingaccent', 'reid', 'release', 'rgid', 'rid',
141-
'secondarytype', 'status', 'tid', 'tnum', 'tracks',
142-
'tracksrelease', 'tag', 'type', 'video'
143-
],
137+
'alias', 'arid', 'artist', 'artistname', 'comment', 'country',
138+
'creditname', 'date', 'dur', 'format', 'isrc', 'number', 'position',
139+
'primarytype', 'qdur', 'recording', 'recordingaccent', 'reid',
140+
'release', 'rgid', 'rid', 'secondarytype', 'status', 'tag', 'tid',
141+
'tnum', 'tracks', 'tracksrelease', 'type', 'video'],
142+
144143
'release-group': [
145-
'arid', 'artist', 'artistname', 'comment', 'creditname',
146-
'primarytype', 'rgid', 'releasegroup', 'releasegroupaccent',
147-
'releases', 'release', 'reid', 'secondarytype', 'status',
148-
'tag', 'type'
144+
'alias', 'arid', 'artist', 'artistname', 'comment', 'creditname',
145+
'primarytype', 'reid', 'release', 'releasegroup', 'releasegroupaccent',
146+
'releases', 'rgid', 'secondarytype', 'status', 'tag', 'type'
149147
],
150148
'release': [
151-
'arid', 'artist', 'artistname', 'asin', 'barcode', 'creditname',
152-
'catno', 'comment', 'country', 'creditname', 'date', 'discids',
153-
'discidsmedium', 'format', 'laid', 'label', 'lang', 'mediums',
154-
'primarytype', 'quality', 'reid', 'release', 'releaseaccent',
155-
'rgid', 'script', 'secondarytype', 'status', 'tag', 'tracks',
156-
'tracksmedium', 'type'
149+
'alias', 'arid', 'artist', 'artistname', 'asin', 'barcode', 'catno',
150+
'comment', 'country', 'creditname', 'date', 'discids', 'discidsmedium',
151+
'format', 'label', 'laid', 'lang', 'mediums', 'primarytype', 'quality',
152+
'reid', 'release', 'releaseaccent', 'rgid', 'script', 'secondarytype',
153+
'status', 'tag', 'tracks', 'tracksmedium', 'type'
157154
],
158155
'series': [
159-
'alias', 'comment', 'sid', 'series', 'type', 'tag'
156+
'alias', 'comment', 'orderingattribute', 'series', 'seriesaccent',
157+
'sid', 'tag', 'type'
160158
],
161159
'work': [
162-
'alias', 'arid', 'artist', 'comment', 'iswc', 'lang', 'tag',
163-
'type', 'wid', 'work', 'workaccent'
164-
],
160+
'alias', 'arid', 'artist', 'comment', 'iswc', 'lang', 'recording',
161+
'recording_count', 'rid', 'tag', 'type', 'wid', 'work', 'workaccent'
162+
]
165163
}
166164

167165
# Constants

0 commit comments

Comments
 (0)