https://bugzilla.wikimedia.org/show_bug.cgi?id=17142
--- Comment #12 from Roan Kattouw <[email protected]> 2009-01-28 08:58:02 UTC --- (In reply to comment #8) > Reverted changes for now in r46379. For some reason the API doesn't allow a > boolean parameter to default to true; perhaps it's only checking for the > presence of the parameter (as with HTML check boxes) rather than paying > attention to the value? > Yeah, that's what it does. In example requests, boolean parameters aren't even set to a value (some clients set them to 1 or 'yes' or something like that, but that's their choice). Of course we could add a &noredirect parameter instead, or just keep the &redirects parameter and tell clients/plugins/whatever that adding an extra parameter to their request isn't the end of the world. (In reply to comment #10) > (In reply to comment #9) > > Now that I've seen how action=opensearch is implemented, I think this bug > > report could be closed as INVALID. Maybe the differences should just be > > documented instead. > > Could do, does seem a bit odd though... require clients to use either an XML > parser or a JSON parser depending on what they want returned? :/ > That's exactly the reason why I don't like the current behavior. Choosing a different format shouldn't have the side effect of toggling redirect resolution, especially if it's not documented. (In reply to comment #11) > I've just tried using a list=search query, but it returned an > "srsearch-title-disabled" error. Otherwise, this might be an alternative to > action=opensearch, and it also has an "srredirects" parameter. > > http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=Neptune&srwhat=title > > http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=Neptune&srwhat=text > If you're looking for a prefix search, use http://en.wikipedia.org/w/api.php?action=query&list=allpages&apprefix=Neptune (which incidentally, also has redirect resolution available). Either way, these requests won't return the right format for suggestion search plugins. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
