Hi again, I forgot one question : would it be possible to add an other parameter than apprefix to search all titles containing a given word, not only titles begining with a given word ? That would be very helpful for me (writing a tool to fix red links by searching for an existing article that could be used instead).
Nico Nicolas Vervelle a écrit : > Roan Kattouw a écrit : >> Nicolas Vervelle schreef: >> >>> Hi, >>> >>> When looking at the documentation you get when callling the API, the >>> apprefix parameter is documented as "Search for all page titles that >>> begin with this value" but I don't get any result when I try to use it. >>> >>> For example, the following request returns zero pages : >>> http://en.wikipedia.org/w/api.php?action=query&list=allpages&apprefix=Bal&apfrom=bal >>> >>> How do you use apprefix ? >>> >> Leave out the apfrom parameter, or set it to Bal rather than bal. >> >> http://en.wikipedia.org/w/api.php?action=query&list=allpages&apprefix=Bal&apfrom=Bal >> and >> http://en.wikipedia.org/w/api.php?action=query&list=allpages&apprefix=Bal >> >> both work. >> >> Roan Kattouw (Catrope) >> > Thanks a lot, > > how stupid of me, I did my first test only with apprefix but value bal > not Bal ... > > Nico > > ------------------------------------------------------------------------ > > _______________________________________________ > Mediawiki-api mailing list > [email protected] > http://lists.wikimedia.org/mailman/listinfo/mediawiki-api > _______________________________________________ Mediawiki-api mailing list [email protected] http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
