[mb-bugs] [jira] Closed: (SEARCH-6) Filter by tags

Paul Taylor (JIRA) jira-admin at musicbrainz.org
Thu Apr 15 20:25:16 UTC 2010


     [ http://jira.musicbrainz.org/browse/SEARCH-6?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Taylor closed SEARCH-6.
----------------------------

    Resolution: Fixed

Xml:
<tag-list><tag count="101">indie</tag></tag-list>

Gets rendered as:
"tag-list":{"tag":[{"count":101,"$":"indie"}]}}]}}

Have checked this with the json guys and it isn't invalid, but the $ is required because the xml has an attribute and tag content.
The "$" character marks the tag content, which otherwise does not have any name because the following json {"tag":{"count":101, "indie"}} is not valid 

So checking in changes, if there is any problem with this json output, could do one of two things

1. Change the Xml Schema to something like <tag-list><tag count="101" name="indie" </tag></tag-list> then the $ problem would not exist.
2. Pass different data back to Website then for the Webservice because this tag data isn't required for rendering the pages, (Currently we just generate the data in one function and return back as either json or xml depending if the request came from website or webservice, this is the simplest approach, and there is no charge to MB for transferring data between searchserver and webserver)  

> Filter by tags
> --------------
>
>                 Key: SEARCH-6
>                 URL: http://jira.musicbrainz.org/browse/SEARCH-6
>             Project: MusicBrainz Search Server
>          Issue Type: Improvement
>            Reporter: nikki
>            Assignee: Paul Taylor
>            Priority: Major
>             Fix For: NGS - Final release
>
>
> It would be nice if we could filter results by tags, e.g. an artist search for tag:rock, which would return artists tagged with "rock"
> from http://bugs.musicbrainz.org/ticket/4861

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.musicbrainz.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the MusicBrainz-bugs mailing list