We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7c6a61 commit 25c17a5Copy full SHA for 25c17a5
1 file changed
src/useSiteSearch/index.tsx
@@ -161,17 +161,14 @@ export function useSiteSearch<Client extends GenericClient>(
161
query: state.query,
162
locale: state.locale,
163
build_trigger_id: config.buildTriggerId,
164
+ ...(config.fuzzySearch === true ? { fuzzy: true } : {}),
165
},
166
page: {
167
limit: resultsPerPage,
168
offset: resultsPerPage * state.page,
169
170
};
171
- if (config.fuzzySearch) {
172
- request.fuzzy = 'true';
173
- }
174
-
175
const response = await config.client.searchResults.rawList(request);
176
177
if (!isCancelled) {
0 commit comments