Skip to content

Commit

Permalink
Fix fuzzy placement
Browse files Browse the repository at this point in the history
  • Loading branch information
arcataroger authored Dec 20, 2024
1 parent d7c6a61 commit 25c17a5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/useSiteSearch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,14 @@ export function useSiteSearch<Client extends GenericClient>(
query: state.query,
locale: state.locale,
build_trigger_id: config.buildTriggerId,
...(config.fuzzySearch === true ? { fuzzy: true } : {}),
},
page: {
limit: resultsPerPage,
offset: resultsPerPage * state.page,
},
};

if (config.fuzzySearch) {
request.fuzzy = 'true';
}

const response = await config.client.searchResults.rawList(request);

if (!isCancelled) {
Expand Down

0 comments on commit 25c17a5

Please sign in to comment.