Hi Brad,
I tried a query with :
params = {'action':'query', 'generator':'search', 'gsrnamespace' : 0, 'gsrsearch' : keywords, 'gsrlimit' : 20 , 'prop' : 'pageimages|extracts', 'pilimit' : 'max', 'exintro' : '', 'explaintext' : '', 'exsentences' : 3, 'exlimit' : 'max', 'redirects' : '' }
I want to try a different query with list=search, but also fetch the page_IDs for the results.
I tried:
action=query&list=search&format=json&srsearch=gene%20editing&srprop=snippet&indexpageids=&generator=allpages
but the ids of generators do not match the id of the list.
How to fetch pageIds for results in list=search ?
I would be happy also to fetch decorators (images) in one query, that is use only one generator to complete the list with pageId and images.
Finally, I'd like to understand the difference between list=search and generator=search : do they reflect a different indexing or architecture (e.g. time response and indexing done in elastic search VS lucene )?