Skip to content

Commit

Permalink
Increase max number of search results to 50
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansive committed Jan 6, 2024
1 parent 91e283c commit f3e8b66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/api/search/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export async function GET(request: NextRequest) {
const results = await xata.db.Books.search(searchParams, {
target: ["title"],
fuzziness: 0,
page: { size: 50, offset: 0 },
});

return NextResponse.json(results);
Expand Down

0 comments on commit f3e8b66

Please sign in to comment.