We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7c6a61 + 25c17a5 commit 2165c93Copy full SHA for 2165c93
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