Le 21/12/2015 16:12, Brad Jorsch (Anomie) a écrit :
You should have implemented isInternal() to return true in your module, so
the auto-generated documentation would properly reflect that status.
I'll fix it, thanks for the advice.
I'd
suggest to use it only for evaluation purpose at this point. We may
provide a better integration in the mediawiki API ecosystem (i.e.
generators[2]) in the coming weeks.
Does your plan for "better integration" include making it the backend
for
action=opensearch when CirrusSearch is installed? That would allow
browsers' search bars to benefit too.
It was the initial plan but for simplicity reasons I preferred to bind
the MW js API searchSuggest to the cirrus-suggest internal API.
If the completion suggester is proven successful and useful it will be a
nice candidate for TitlePrefixSearch replacement in opensearch.
I'd recommend against a non-beta CirrusSearch
module for suggestions,
versus something in core that Cirrus provides the backend for. That
something is probably the existing list=prefixsearch.[1]
I agree. On this point I will follow any recommendations from API
maintainers, my knowledge of the current API ecosystem is too limited to
make any good decision here.
Thanks!
David.