feat: Added user search component.

This commit is contained in:
2025-06-01 13:54:54 +02:00
parent 334402d8c5
commit ec24700b8a
2 changed files with 6 additions and 3 deletions

View File

@@ -26,4 +26,6 @@ const userSchema = new Schema<IUser>({
defaultPage: {type: String, default: ""},
})
userSchema.index({uname: "text", room: "text", fname: "text", surname: "text"}, {weights: {fname: 3, surname: 4, room: 2, uname: 1}, default_language: "none"})
export default mongoose.model("logins", userSchema)