# How does one search recordings across all fields in the XML web service?

**URL:** <https://community.metabrainz.org/t/how-does-one-search-recordings-across-all-fields-in-the-xml-web-service/382240>\
**Category:** Development\
**Tags:** search, webservice\
**Created:** [May 25, 2018, 10:20pm UTC](https://community.metabrainz.org/t/how-does-one-search-recordings-across-all-fields-in-the-xml-web-service/382240 "2018-05-25T22:20:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![olivercoleman](https://community.metabrainz.org/user_avatar/community.metabrainz.org/olivercoleman/32/12856_2.png) [@olivercoleman](https://community.metabrainz.org/u/olivercoleman)\
**Post date:** [May 25, 2018, 10:20pm UTC](https://community.metabrainz.org/t/how-does-one-search-recordings-across-all-fields-in-the-xml-web-service/382240/1 "2018-05-25T22:20:10Z")

</div>

On the main MB web site it’s possible to search for recordings by entering the names associated with the recording, names such as the recording title, artist(s) and release group. The web-based search seems to do a good job of searching across multiple fields to find relevant results. However in the XML web service this does not seem to be possible. In fact, if you do what looks like it might be a generic/all-fields query such as  
`https://musicbrainz.org/ws/2/recording/?query="la voix humaine gswing electro swing vol 1"` the documentation says that this will only search in the recording name (which certainly seems to be the case when I try it).

---

<div class="post-metadata">

**Author:** ![yvanzo](https://community.metabrainz.org/user_avatar/community.metabrainz.org/yvanzo/32/2864_2.png) [@yvanzo](https://community.metabrainz.org/u/yvanzo)\
**Post date:** [May 29, 2018, 12:01pm UTC](https://community.metabrainz.org/t/how-does-one-search-recordings-across-all-fields-in-the-xml-web-service/382240/2 "2018-05-29T12:01:14Z")

</div>

First, don’t use quotes if you want the search server to consider each word separately. The following query already gives better results although it doesn’t search into fields other than recording name: `https://musicbrainz.org/ws/2/recording/?query=la voix humaine gswing electro swing vol 1`

Second, the future replacement search server based on Solr will be multi-field by default. For example, `https://test.musicbrainz.org/ws/2/recording/?query=G-Swing Le Major Melon Electro Swing` returns a recording called “La Voix Humaine” amongst others.

---

<div class="post-metadata">

**Author:** ![olivercoleman](https://community.metabrainz.org/user_avatar/community.metabrainz.org/olivercoleman/32/12856_2.png) [@olivercoleman](https://community.metabrainz.org/u/olivercoleman)\
**Post date:** [May 29, 2018, 10:36pm UTC](https://community.metabrainz.org/t/how-does-one-search-recordings-across-all-fields-in-the-xml-web-service/382240/3 "2018-05-29T22:36:32Z")

</div>

Ahh, thanks for the tips! Is there a planned release date for the new search server?

---

<div class="post-metadata">

**Author:** ![yvanzo](https://community.metabrainz.org/user_avatar/community.metabrainz.org/yvanzo/32/2864_2.png) [@yvanzo](https://community.metabrainz.org/u/yvanzo)\
**Post date:** [May 30, 2018, 8:57am UTC](https://community.metabrainz.org/t/how-does-one-search-recordings-across-all-fields-in-the-xml-web-service/382240/4 "2018-05-30T08:57:21Z")

</div>

Not yet, it is currently deployed in test only and still requires a bit of parameters tuning.  
One can probably expect it as the default/production search server within next month.
