[mb-devel] Clarification on Lucene syntax and other questions
Scott Peterson
lunchtimemama at gmail.com
Fri Nov 2 04:48:45 UTC 2007
The TextSearchSyntax wiki page [1] does not list the available Lucene
parameters for the label resource. Also, the "discid" query parameter
is available to the URL query schema for the release resource [2], but
not to the Lucene engine. Is there a reason for that or can I open a
bug report?
The track resource has a list of releases. I've only ever encountered
tracks with one release in that list. Are there instances of tracks
with more than one release?
Exactly what of the following can be done with the XMLWebService and
for what resources: Create, Modify, Delete? Exactly how should the XML
be formated to perform these functions? The only information I can
find on the wiki is a vaguely worded bit on PUID submission[3].
Tangent to that, does anyone have a MB server on which they would
allow me to test database modification via XMLWebService? If not, how
hard is it to set one up myself?
My musicbrainz-sharp project has a new home in Banshee's svn[4].
Here's a little C# taste of the API:
Artist a = Artist.QuerySingle("Elemeno P");
foreach(Release r in a.Releases) {
Console.WriteLine(r.Title);
foreach(Track t in r.Tracks)
Console.WriteLine("\t" + t.Title);
}
I've also begun work on a LINQ[5] provider. It allows for fancy C# 3
stuff like this in:
var query = from r in MB.Releases
where r.Artist == "Gimme Gimmes" &&
r.Type == ReleaseType.Live &&
r.Status == ReleaseStatus.Official
select r;
foreach(var result in query)
Console.WriteLine(result.Title);
Version 1.0 of the library should be done soon. I'll post with more
questions as they come up. Thanks!
[1] http://wiki.musicbrainz.org/TextSearchSyntax
[2] http://wiki.musicbrainz.org/XMLWebService#head-ff230d557198043742bc98a918d57288408b8944
[3] http://wiki.musicbrainz.org/XMLWebService#head-452638f36e37a079ff0502a273e40cef9a055d8a
[4] http://svn.gnome.org/viewvc/banshee/trunk/musicbrainz-sharp/
[5] http://en.wikipedia.org/wiki/LINQ
--
Scott.
More information about the MusicBrainz-devel
mailing list