# Different search results from webservice and site

**URL:** <https://community.metabrainz.org/t/different-search-results-from-webservice-and-site/403667>\
**Category:** MusicBrainz\
**Created:** [October 31, 2018, 4:26am UTC](https://community.metabrainz.org/t/different-search-results-from-webservice-and-site/403667 "2018-10-31T04:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![algerd](https://community.metabrainz.org/user_avatar/community.metabrainz.org/algerd/32/8491_2.png) [@algerd](https://community.metabrainz.org/u/algerd)\
**Post date:** [October 31, 2018, 4:26am UTC](https://community.metabrainz.org/t/different-search-results-from-webservice-and-site/403667/1 "2018-10-31T04:26:29Z")

</div>

Why different search results are returned from webservice and site:  
[http://musicbrainz.org/ws/2/tag/?query=rock&fmt=json](http://musicbrainz.org/ws/2/tag/?query=rock&fmt=json)  
[http://musicbrainz.org/ws/2/tag/?query=tag:rock&fmt=json](http://musicbrainz.org/ws/2/tag/?query=tag:rock&fmt=json)  
[https://musicbrainz.org/search?query=rock&type=tag&limit=25&method=indexed](https://musicbrainz.org/search?query=rock&type=tag&limit=25&method=indexed)  
Is it bug?

---

<div class="post-metadata">

**Author:** ![reosarevok](https://community.metabrainz.org/user_avatar/community.metabrainz.org/reosarevok/32/69228_2.png) [@reosarevok](https://community.metabrainz.org/u/reosarevok)\
**Post date:** [October 31, 2018, 8:19am UTC](https://community.metabrainz.org/t/different-search-results-from-webservice-and-site/403667/2 "2018-10-31T08:19:59Z")

</div>

Not exactly a bug, but it seems the website is still redirecting to the direct database search automatically when searching for tags. We used to do this because we didn’t have an indexed tag search, but we should probably change that now 🙂 I’ll add a ticket.

---

<div class="post-metadata">

**Author:** ![algerd](https://community.metabrainz.org/user_avatar/community.metabrainz.org/algerd/32/8491_2.png) [@algerd](https://community.metabrainz.org/u/algerd)\
**Post date:** [October 31, 2018, 10:00am UTC](https://community.metabrainz.org/t/different-search-results-from-webservice-and-site/403667/3 "2018-10-31T10:00:20Z")

</div>

Search results from the site are much more correct than indexed results from the webservice. For example, the site finds the requested tag “rock” in the first result, and the service finds first ugly “rock\_pop rock\_rock\_pop rock\_rock\_pop rock\_rock”, but does not see simple “rock”. And why different search results are from same webservice requests: query=rock and query=tag:rock?
