Re: Unified browse and search interface as GSoC 2015

Ian McEwen <[email protected]> Fri, 27 Mar 2015 23:51:55 -0700
Newsgroups gmane.comp.audio.musicbrainz.devel
Message-ID <[email protected]>
The search server has a variety of fields, documented at
http://musicbrainz.org/doc/Indexed_Search_Syntax and supports the
general lucene query parser syntax, documented at:

https://lucene.apache.org/core/4_0_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description

What you're asking for here is problematic because it involves an
initial wildcard on the date (which is not allowed), but you can do it
with a regular expression search, e.g.:

https://musicbrainz.org/search?query=begin%3A%2F.*%3F-01-.*%2F&type=artist&limit=25&method=advanced

... which is not exactly what you asked for, specifically that's artists
whose begin date's month is January, but I think that's what you meant
:)

I believe the search does not properly handle dates without years, as
well. But hopefully that answers your question relatively
satisfactorily.

On Sat, Mar 28, 2015 at 11:45:18AM +0530, Thanuditha Ruchiranga wrote:
> Hi
>
> I am trying to add some support for year agnostic entries like "artists
> born between 1st of January and 1st of February" when browsing artists
> under the born/founded sub category in the mockup
> <http://musicbrainzexploremockup-ruchiranga.rhcloud.com/> I built. I looked
> for a supported syntax for that and found no luck in finding any in the
> links
> https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search
> and
> https://musicbrainz.org/doc/Search_Server.
>
> Does the search server support that kind of queries? if so is there any
> documentation i can refer to?

> _______________________________________________
> MusicBrainz-devel mailing list
> [email protected]
> http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel

_______________________________________________
MusicBrainz-devel mailing list
[email protected]
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel
signature.asc (application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlUWT4gACgkQq+0avXExp2+c4wCgy4tIEDFN6dRDJLImL5XAK/pb
rX8An0C34EzDbf3BszoDREVKHOIgtLaQ
=gxIb
-----END PGP SIGNATURE-----