(term: string)
| 23 | fields: ["title", "text", "keywords"], // fields to return with search results |
| 24 | storeFields: ["title"], |
| 25 | processTerm(term: string) { |
| 26 | return (term.match(/\p{N}/gu)?.length ?? 0) > 6 ? null : term.slice(0, 15).toLowerCase(); |
| 27 | } |
| 28 | }; |
| 29 | |
| 30 | type MiniSearchResult = Omit<SearchResult, "path" | "keywords"> & {id: string; keywords: string}; |