Hello,

I would like to better understand the difference in using list=search VS
generator=search for full-text search.

I've read list=search relies on elastic search:  which are the differences
in indexing and differences in returned results between list=generator and
generator=search ?

I also need to query the page_ID of returned articles:
I can using a generator=search: page_IDs are related to returned pages (example
in sandbox
<https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&prop=extracts|redirects&format=json&rdprop=pageid%7Ctitle&indexpageids=&generator=search&gsrsearch=dj%20tiesto>
)

But cannot do it with list=search:
I tried: list=search + generator=allpages + indexpageids parameter.

The pageIDs in query['pageids'] *are not related* to the articles in
the query['search']
list - it looks like generator is querying new stuff by itself, instead of
taking the list in input.

Could you please help to write a query using list=search to fetch also
pageIDs of returned pages?

My sandbox attempt is:

https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&list=search&format=json&srsearch=dj%20tiesto&srprop=snippet%7Ctitlesnippet&indexpageids=&generator=allpages&gapcontinue=nextPage&gapfilterredir=nonredirects&gapdir=ascending

Thank you!
_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to