Skip to content

Improve search #55

@rahulporuri

Description

@rahulporuri

PR #48 introduced search functionality to forklore.in but the search is limited to "username", "full name", "projects list" at the moment, where "projects list" is project names

const miniSearch = new MiniSearch({
fields: ["username", "full_name", "projects_list"],
storeFields: ["username", "full_name", "projects_list"],
searchOptions: {
prefix: true,
fuzzy: 0.2,
},
});

const normalizedMaintainers = computed(() =>
maintainers.value?.map((m) => ({
...m,
projects_list: m.projects.map((p) => p.name).join(", "),
}))
);

It'll be great if the users could also search "long description" and "short description" of the project. This enables searches of the kind "security", "python", etc for the users and thereby discover maintainers within those ecosystems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions