-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
MB Search API documentation says you can use offset and limit to paginate the results of a query, but it does not work:
/ws/2/<entity-type>/?query=<query>&limit=100&offset=<offset>
Try with a query that returns more than 100 results, try with offset=0 or offset=101.
Results are ordered randomly.
If you paginate through all possible offsets to collect all results, you will have duplicates of some items and you will miss other items, randomly, always.
So the offset system is broken, since SOLR, probably?
Could we have a sort order set for all queries? It could be anything like, for instance, order by row ID.
Old description, before noticing it was a global issue:
I try to use /ws/2/work?query=…&offset=x&limit=y in JSON.
The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages.
Therefore it's impossible to use this web service when there can be more than 100 results.
- is related to
-
SEARCH-667 Missing Release Groups and Inconsistent Responses when Searching Official Release Groups for Artist via API
-
- Open
-
-
MBS-5636 Make it possible to sort webservice results
-
- Open
-
[MBS-12154] MB Search API is broken, no pagination possible
Assignee | New: Alastair Porter [ alastairp ] |
Status | Original: Open [ 1 ] | New: Review Submitted [ 5 ] |
Description |
Original:
[MB Search API documentation|https://wiki.musicbrainz.org/MusicBrainz_API/Search] says you can use *offset* and *limit* to paginate the results of a *query*, but it does not work:
{{/ws/2/<entity-type>/?query=<query>&limit=100&offset=<offset>}} Try with a query that returns more than 100 results, try with {{offset=0}} or {{offset=101}}. Results are ordered randomly. *If you paginate through all possible offsets to collect all results, you will have duplicates of some items and you will miss other items, randomly, always.* So the *offset* system is broken, since SOLR, probably? ---- Old description, before noticing it was a global issue: I try to use /ws/2/*work*?query=…&offset=x&limit=y in JSON. The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages. Therefore it's impossible to use this web service [when there can be more than 100 results|https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008267401]. |
New:
[MB Search API documentation|https://wiki.musicbrainz.org/MusicBrainz_API/Search] says you can use *offset* and *limit* to paginate the results of a *query*, but it does not work:
{{/ws/2/<entity-type>/?query=<query>&limit=100&offset=<offset>}} Try with a query that returns more than 100 results, try with {{offset=0}} or {{offset=101}}. Results are ordered randomly. *If you paginate through all possible offsets to collect all results, you will have duplicates of some items and you will miss other items, randomly, always.* So the *offset* system is broken, since SOLR, probably? *Could we have a sort order set for all queries?* It could be *anything* like, for instance, *order by row ID*. ---- Old description, before noticing it was a global issue: I try to use /ws/2/*work*?query=…&offset=x&limit=y in JSON. The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages. Therefore it's impossible to use this web service [when there can be more than 100 results|https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008267401]. |
Description |
Original:
[MB Search API documentation|https://wiki.musicbrainz.org/MusicBrainz_API/Search] says you can use offset and limit to paginate the results:
{{/ws/2/<entity-type>/?query=<query>&limit=100&offset=<offset>}} Try with a query that returns more than 100 results, try with {{offset=0}} or {{offset=101}}. Results are ordered randomly. *If you paginate through all possible offsets to collect all results, you will have duplicates of some items and you will miss other items, randomly, always.* So the *offset* system is broken, since SOLR, probably? ---- Old description, before noticing it was a global issue: I try to use /ws/2/*work*?query=…&offset=x&limit=y in JSON. The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages. Therefore it's impossible to use this web service [when there can be more than 100 results|https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008267401]. |
New:
[MB Search API documentation|https://wiki.musicbrainz.org/MusicBrainz_API/Search] says you can use *offset* and *limit* to paginate the results of a *query*, but it does not work:
{{/ws/2/<entity-type>/?query=<query>&limit=100&offset=<offset>}} Try with a query that returns more than 100 results, try with {{offset=0}} or {{offset=101}}. Results are ordered randomly. *If you paginate through all possible offsets to collect all results, you will have duplicates of some items and you will miss other items, randomly, always.* So the *offset* system is broken, since SOLR, probably? ---- Old description, before noticing it was a global issue: I try to use /ws/2/*work*?query=…&offset=x&limit=y in JSON. The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages. Therefore it's impossible to use this web service [when there can be more than 100 results|https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008267401]. |
Description |
Original:
[MB Search API documentation|https://wiki.musicbrainz.org/MusicBrainz_API/Search] says you can use offset and limit to paginate the results:
{{/ws/2/<entity>/?query=<query>&limit=100&offset=<offset>}} Try with a query that returns more than 100 results, try with {{offset=0}} or {{offset=101}}. Results are ordered randomly. *If you paginate through all possible offsets to collect all results, you will have duplicates of some items and you will miss other items, randomly, always.* So the *offset* system is broken, since SOLR, probably? ---- Old description, before noticing it was a global issue: I try to use /ws/2/*work*?query=…&offset=x&limit=y in JSON. The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages. Therefore it's impossible to use this web service [when there can be more than 100 results|https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008267401]. |
New:
[MB Search API documentation|https://wiki.musicbrainz.org/MusicBrainz_API/Search] says you can use offset and limit to paginate the results:
{{/ws/2/<entity-type>/?query=<query>&limit=100&offset=<offset>}} Try with a query that returns more than 100 results, try with {{offset=0}} or {{offset=101}}. Results are ordered randomly. *If you paginate through all possible offsets to collect all results, you will have duplicates of some items and you will miss other items, randomly, always.* So the *offset* system is broken, since SOLR, probably? ---- Old description, before noticing it was a global issue: I try to use /ws/2/*work*?query=…&offset=x&limit=y in JSON. The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages. Therefore it's impossible to use this web service [when there can be more than 100 results|https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008267401]. |
Description |
Original:
[MB Search API documentation|https://wiki.musicbrainz.org/MusicBrainz_API/Search] says you can use offset and limit to paginate the results:
{{https://musicbrainz.org/ws/2/<entity>/?query=<query>&limit=100&offset=<offset>}} Try with a query that returns more than 100 results, try with {{offset=0}} or {{offset=101}}. Results are ordered randomly. *If you paginate through all possible offsets to collect all results, you will have duplicates of some items and you will miss other items, randomly, always.* So the *offset* system is broken, since SOLR, probably? ---- Old description, before noticing it was a global issue: I try to use /ws/2/*work*?query=…&offset=x&limit=y in JSON. The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages. Therefore it's impossible to use this web service [when there can be more than 100 results|https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008267401]. |
New:
[MB Search API documentation|https://wiki.musicbrainz.org/MusicBrainz_API/Search] says you can use offset and limit to paginate the results:
{{/ws/2/<entity>/?query=<query>&limit=100&offset=<offset>}} Try with a query that returns more than 100 results, try with {{offset=0}} or {{offset=101}}. Results are ordered randomly. *If you paginate through all possible offsets to collect all results, you will have duplicates of some items and you will miss other items, randomly, always.* So the *offset* system is broken, since SOLR, probably? ---- Old description, before noticing it was a global issue: I try to use /ws/2/*work*?query=…&offset=x&limit=y in JSON. The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages. Therefore it's impossible to use this web service [when there can be more than 100 results|https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008267401]. |
Component/s | New: Search [ 10003 ] |
Description |
Original:
I try to use /ws/2/*work*?query=…&offset=x&limit=y in JSON.
The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages. Therefore it's impossible to use this web service [when there can be more than 100 results|https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008267401]. |
New:
[MB Search API documentation|https://wiki.musicbrainz.org/MusicBrainz_API/Search] says you can use offset and limit to paginate the results:
{{https://musicbrainz.org/ws/2/<entity>/?query=<query>&limit=100&offset=<offset>}} Try with a query that returns more than 100 results, try with {{offset=0}} or {{offset=101}}. Results are ordered randomly. *If you paginate through all possible offsets to collect all results, you will have duplicates of some items and you will miss other items, randomly, always.* So the *offset* system is broken, since SOLR, probably? ---- Old description, before noticing it was a global issue: I try to use /ws/2/*work*?query=…&offset=x&limit=y in JSON. The results are never ordered in the same fashion, even between two calls of the same query and same limit with a different offset to fetch pages. Therefore it's impossible to use this web service [when there can be more than 100 results|https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008267401]. |
Summary | Original: Cannot paginate /ws/2/work?query= with offset as work search web service results are not ordered | New: MB Search API is broken, no pagination possible |