Wrong result

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Wrong result

sherry.ummen@gmail.com
Hi John,


I have not decided yet whether to do any paging logic in my app (if thats what you are asking).

But I want to get the whole list of images from all the pages in the query and then I need to do some filtration.

-Sherry

On Mon, 2 May 2016 at 15:01 <[hidden email]> wrote:
Send Mediawiki-api mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Mediawiki-api digest..."


Today's Topics:

   1. Wrong result ([hidden email])
   2. Re: Wrong result (John)


----------------------------------------------------------------------

Message: 1
Date: Sun, 01 May 2016 20:38:10 +0000
From: "[hidden email]" <[hidden email]>
To: "[hidden email]"
        <[hidden email]>
Subject: [Mediawiki-api] Wrong result
Message-ID:
        <CABKw4GEpYpT4dw=GdeCw5G=[hidden email]>
Content-Type: text/plain; charset="utf-8"

hello,

if i run following query :

https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json

I do not get images for all the pageids. I am not sure what is worn in this
query.

If I use single pageid then I get expected result.

Please suggest or help!

-Sherry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20160501/91fc4568/attachment-0001.html>

------------------------------

Message: 2
Date: Sun, 1 May 2016 17:35:01 -0400
From: John <[hidden email]>
To: "MediaWiki API announcements & discussion"
        <[hidden email]>
Subject: Re: [Mediawiki-api] Wrong result
Message-ID:
        <CAP-JHp=giwUuQT-TGeL29+e3J=[hidden email]>
Content-Type: text/plain; charset="utf-8"

Are you paging thru all the results or just the single result page?

On Sunday, May 1, 2016, [hidden email] <[hidden email]>
wrote:

> hello,
>
> if i run following query :
>
>
> https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json
>
> I do not get images for all the pageids. I am not sure what is worn in
> this query.
>
> If I use single pageid then I get expected result.
>
> Please suggest or help!
>
> -Sherry
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20160501/c8451e51/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


------------------------------

End of Mediawiki-api Digest, Vol 107, Issue 1
*********************************************

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Wrong result

Petr Onderka
No, it's not about paging in your app, it's about paging of the API results. [1]

In the case of this specific query, it's enough just to raise the
limit by adding imlimit=max to the query [2],
but in general, you should specify the limit and also follow continue.

Petr Onderka
User:Svick

[1]: https://www.mediawiki.org/wiki/API:Query#Continuing_queries
[2]: https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json&imlimit=max

On Mon, May 2, 2016 at 3:25 PM, [hidden email]
<[hidden email]> wrote:

> Hi John,
>
>
> I have not decided yet whether to do any paging logic in my app (if thats
> what you are asking).
>
> But I want to get the whole list of images from all the pages in the query
> and then I need to do some filtration.
>
> -Sherry
>
> On Mon, 2 May 2016 at 15:01 <[hidden email]>
> wrote:
>>
>> Send Mediawiki-api mailing list submissions to
>>         [hidden email]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>> or, via email, send a message with subject or body 'help' to
>>         [hidden email]
>>
>> You can reach the person managing the list at
>>         [hidden email]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Mediawiki-api digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Wrong result ([hidden email])
>>    2. Re: Wrong result (John)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Sun, 01 May 2016 20:38:10 +0000
>> From: "[hidden email]" <[hidden email]>
>> To: "[hidden email]"
>>         <[hidden email]>
>> Subject: [Mediawiki-api] Wrong result
>> Message-ID:
>>
>> <CABKw4GEpYpT4dw=GdeCw5G=[hidden email]>
>> Content-Type: text/plain; charset="utf-8"
>>
>> hello,
>>
>> if i run following query :
>>
>>
>> https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json
>>
>> I do not get images for all the pageids. I am not sure what is worn in
>> this
>> query.
>>
>> If I use single pageid then I get expected result.
>>
>> Please suggest or help!
>>
>> -Sherry
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <https://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20160501/91fc4568/attachment-0001.html>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Sun, 1 May 2016 17:35:01 -0400
>> From: John <[hidden email]>
>> To: "MediaWiki API announcements & discussion"
>>         <[hidden email]>
>> Subject: Re: [Mediawiki-api] Wrong result
>> Message-ID:
>>
>> <CAP-JHp=giwUuQT-TGeL29+e3J=[hidden email]>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Are you paging thru all the results or just the single result page?
>>
>> On Sunday, May 1, 2016, [hidden email] <[hidden email]>
>> wrote:
>>
>> > hello,
>> >
>> > if i run following query :
>> >
>> >
>> >
>> > https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json
>> >
>> > I do not get images for all the pageids. I am not sure what is worn in
>> > this query.
>> >
>> > If I use single pageid then I get expected result.
>> >
>> > Please suggest or help!
>> >
>> > -Sherry
>> >
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <https://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20160501/c8451e51/attachment-0001.html>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> Mediawiki-api mailing list
>> [hidden email]
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>>
>>
>> ------------------------------
>>
>> End of Mediawiki-api Digest, Vol 107, Issue 1
>> *********************************************
>
>
> _______________________________________________
> Mediawiki-api mailing list
> [hidden email]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Wrong result

John Doe-27
What Peter highlighted is that the mediawiki API pages results, when you make a request you should page thru all results 

On Monday, May 2, 2016, Petr Onderka <[hidden email]> wrote:
No, it's not about paging in your app, it's about paging of the API results. [1]

In the case of this specific query, it's enough just to raise the
limit by adding imlimit=max to the query [2],
but in general, you should specify the limit and also follow continue.

Petr Onderka
User:Svick

[1]: https://www.mediawiki.org/wiki/API:Query#Continuing_queries
[2]: <a href="https://en.wikipedia.org/w/api.php?action=query&amp;prop=images&amp;pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&amp;format=json&amp;imlimit=max" target="_blank">https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json&imlimit=max

On Mon, May 2, 2016 at 3:25 PM, <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;sherry.ummen@gmail.com&#39;)">sherry.ummen@...
<<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;sherry.ummen@gmail.com&#39;)">sherry.ummen@...> wrote:
> Hi John,
>
>
> I have not decided yet whether to do any paging logic in my app (if thats
> what you are asking).
>
> But I want to get the whole list of images from all the pages in the query
> and then I need to do some filtration.
>
> -Sherry
>
> On Mon, 2 May 2016 at 15:01 <<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;mediawiki-api-request@lists.wikimedia.org&#39;)">mediawiki-api-request@...>
> wrote:
>>
>> Send Mediawiki-api mailing list submissions to
>>         <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;mediawiki-api@lists.wikimedia.org&#39;)">mediawiki-api@...
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>> or, via email, send a message with subject or body 'help' to
>>         <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;mediawiki-api-request@lists.wikimedia.org&#39;)">mediawiki-api-request@...
>>
>> You can reach the person managing the list at
>>         <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;mediawiki-api-owner@lists.wikimedia.org&#39;)">mediawiki-api-owner@...
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Mediawiki-api digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Wrong result (<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;sherry.ummen@gmail.com&#39;)">sherry.ummen@...)
>>    2. Re: Wrong result (John)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Sun, 01 May 2016 20:38:10 +0000
>> From: "<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;sherry.ummen@gmail.com&#39;)">sherry.ummen@..." <<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;sherry.ummen@gmail.com&#39;)">sherry.ummen@...>
>> To: "<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;mediawiki-api@lists.wikimedia.org&#39;)">mediawiki-api@..."
>>         <<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;mediawiki-api@lists.wikimedia.org&#39;)">mediawiki-api@...>
>> Subject: [Mediawiki-api] Wrong result
>> Message-ID:
>>
>> <CABKw4GEpYpT4dw=GdeCw5G=<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;SNN7vn2eeGhgtQr48MiCLBvQ2Vg@mail.gmail.com&#39;)">SNN7vn2eeGhgtQr48MiCLBvQ2Vg@...>
>> Content-Type: text/plain; charset="utf-8"
>>
>> hello,
>>
>> if i run following query :
>>
>>
>> <a href="https://en.wikipedia.org/w/api.php?action=query&amp;prop=images&amp;pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&amp;format=json" target="_blank">https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json
>>
>> I do not get images for all the pageids. I am not sure what is worn in
>> this
>> query.
>>
>> If I use single pageid then I get expected result.
>>
>> Please suggest or help!
>>
>> -Sherry
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <https://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20160501/91fc4568/attachment-0001.html>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Sun, 1 May 2016 17:35:01 -0400
>> From: John <<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;phoenixoverride@gmail.com&#39;)">phoenixoverride@...>
>> To: "MediaWiki API announcements & discussion"
>>         <<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;mediawiki-api@lists.wikimedia.org&#39;)">mediawiki-api@...>
>> Subject: Re: [Mediawiki-api] Wrong result
>> Message-ID:
>>
>> <CAP-JHp=giwUuQT-TGeL29+e3J=<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;oZ+JF1dovicV0uDG29aO-KKg@mail.gmail.com&#39;)">oZ+JF1dovicV0uDG29aO-KKg@...>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Are you paging thru all the results or just the single result page?
>>
>> On Sunday, May 1, 2016, <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;sherry.ummen@gmail.com&#39;)">sherry.ummen@... <<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;sherry.ummen@gmail.com&#39;)">sherry.ummen@...>
>> wrote:
>>
>> > hello,
>> >
>> > if i run following query :
>> >
>> >
>> >
>> > <a href="https://en.wikipedia.org/w/api.php?action=query&amp;prop=images&amp;pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&amp;format=json" target="_blank">https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids=45298209|22451814|17926903|6084709|4037814|302483|4740439|3894101|4157638|1845819|25337925|2604407|49063439|6258715|4259530|48523312|6332908|30044006|35970623|2101648|49073305|4680959|36834129|313451|15135925|13549495|16569477|937103|45225441|48653192|18414867|972204|17530427|26563621|15192218|45235494|33513019|21843422|22848121|23809496|9094714|48320541|3291857|26743149|8130141|24251238|12777317|36522192|7889859|35052699&format=json
>> >
>> > I do not get images for all the pageids. I am not sure what is worn in
>> > this query.
>> >
>> > If I use single pageid then I get expected result.
>> >
>> > Please suggest or help!
>> >
>> > -Sherry
>> >
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <https://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20160501/c8451e51/attachment-0001.html>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> Mediawiki-api mailing list
>> <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;Mediawiki-api@lists.wikimedia.org&#39;)">Mediawiki-api@...
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>>
>>
>> ------------------------------
>>
>> End of Mediawiki-api Digest, Vol 107, Issue 1
>> *********************************************
>
>
> _______________________________________________
> Mediawiki-api mailing list
> <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;Mediawiki-api@lists.wikimedia.org&#39;)">Mediawiki-api@...
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>

_______________________________________________
Mediawiki-api mailing list
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;Mediawiki-api@lists.wikimedia.org&#39;)">Mediawiki-api@...
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api