Skip to content

Improve category search #59

@JeroenDeDauw

Description

@JeroenDeDauw

At the moment it seems to be doing only prefix search. If a category is Foo Bar Baz, it should show up in the suggestions when the user types Bar

Changing

async function searchCategories( api, query ) {
const data = await fetchApiData(
api,
{
action: 'query',
list: 'allcategories',
acprefix: query,
aclimit: 50
},
'query.allcategories'
);

Using the search API might be better (#56 (comment))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions