From 720793af96386dc9265212e02dbf8ec51b821cc8 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 31 Jul 2025 03:12:20 +0200 Subject: [PATCH] Add components to key search --- app/api/profiles/route.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/api/profiles/route.ts b/app/api/profiles/route.ts index d0036b26..2e5dcc64 100644 --- a/app/api/profiles/route.ts +++ b/app/api/profiles/route.ts @@ -80,6 +80,21 @@ export async function GET(request: Request) { description: {contains: searchQuery, mode: 'insensitive'}, }, }, + { + profile: { + occupation: {contains: searchQuery, mode: 'insensitive'}, + }, + }, + { + profile: { + location: {contains: searchQuery, mode: 'insensitive'}, + }, + }, + { + profile: { + contactInfo: {contains: searchQuery, mode: 'insensitive'}, + }, + }, ]; }