Hi, Looks like a problem with generator=prefixsearch queries. Properties always missing for the last item (20th page in the examples below) in the returned results. I don’t see this issue for generator=geosearch.
Here are the examples:
https://en.wikipedia.org/w/api.php?redirects=1&exintro&gpssearch=New... https://en.wikipedia.org/w/api.php?redirects=1&exintro&gpssearch=New&gpslimit=20&inprop=url&explaintext&action=query&prop=extracts&exsectionformat=plain&exlimit=20&continue&exchars=150&generator=prefixsearch https://en.wikipedia.org/w/api.php?redirects=1&gpssearch=New&pithumb... https://en.wikipedia.org/w/api.php?redirects=1&gpssearch=New&pithumbsize=100&gpslimit=20&action=query&pilimit=20&prop=pageimages&continue&generator=prefixsearch
Thank you.
On Wed, Mar 4, 2015 at 12:04 AM, Dmitry Talisman dmitry.talisman@gmail.com wrote:
Hi, Looks like a problem with generator=prefixsearch queries. Properties always missing for the last item (20th page in the examples below) in the returned results.
The real problem is that generator=prefixsearch is returning 21 pages with gpslimit=20. Thus when you specify exlimit=20, the 21st is past the limit.
I've filed https://phabricator.wikimedia.org/T91503 to track this issue.
Ok. Thank you.
On Mar 4, 2015, at 9:23 AM, Brad Jorsch (Anomie) bjorsch@wikimedia.org wrote:
On Wed, Mar 4, 2015 at 12:04 AM, Dmitry Talisman <dmitry.talisman@gmail.com mailto:dmitry.talisman@gmail.com> wrote: Hi, Looks like a problem with generator=prefixsearch queries. Properties always missing for the last item (20th page in the examples below) in the returned results.
The real problem is that generator=prefixsearch is returning 21 pages with gpslimit=20. Thus when you specify exlimit=20, the 21st is past the limit.
I've filed https://phabricator.wikimedia.org/T91503 https://phabricator.wikimedia.org/T91503 to track this issue.
-- Brad Jorsch (Anomie) Software Engineer Wikimedia Foundation _______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org