Add an opt-in option to lowercase filter values
Filter values that only differ in case, like `Mint` and `mint`, came through as separate values. The new `--lowercase-filters` option (`lowercase_filters`, `PAGEFIND_LOWERCASE_FILTERS`, and `lowercaseFilters` / `lowercase_filters` in the Node and Python wrappers) lowercases filter values when indexing and merges values on a page that become equal. Filter names are left as they are. Off by default. Fixes #737
This commit is contained in:
1 parent
1308f3c1bb
commit
3a1d31147a
12 files changed
+176
No files matched your search
@@ -59,6 +59,7 @@ export const createIndex = (config) => new Promise((resolve, reject) => {
|
||||
keep_index_url: config?.keepIndexUrl,
|
||||
write_playground: config?.writePlayground,
|
||||
include_characters: config?.includeCharacters,
|
||||
lowercase_filters: config?.lowercaseFilters,
|
||||
}
|
||||
}, (response) => {
|
||||
/** @type {function(InternalResponsePayload): Omit<NewIndexResponse, 'errors'>?} */
|
||||
|
||||
Reference in new issue
Block a user