@codeberry/easysearch
Version:
A Strapi v5 plugin providing transliterated fuzzy search capabilities and advanced filtering logic for both GraphQL and REST APIs.
19 lines (18 loc) • 414 B
TypeScript
export interface SearchPluginConfig {
contentTypes: ContentTypeConfig[];
}
export interface ContentTypeConfig {
uid: string;
transliterate?: boolean;
fuzzysortOptions: FuzzysortOptions;
populateFields?: string[];
}
export interface FuzzysortOptions {
characterLimit?: number;
threshold?: number;
limit?: number;
keys: {
name: string;
weight?: number;
}[];
}