Skip to content

Commit

Permalink
Enable prefix phrase search, adjust max results
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansive committed Jan 7, 2024
1 parent c0de541 commit 2f10b3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/api/search/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ export async function GET(request: NextRequest) {
try {
const results = await xata.db.Books.search(searchParams, {
target: ["title"],
prefix: "phrase",
fuzziness: 0,
page: { size: 50, offset: 0 },
page: { size: 35, offset: 0 },
});

// Pasted from Copilot; could probably be done better
Expand Down

0 comments on commit 2f10b3e

Please sign in to comment.