Text Search
interface Book {
_id: ObjectId;
title: string;
summary: string;
}const collection : Collection<Book> = client.db("library").collection<Book>("books"); const books: Book[] = [
{ title: "The Great Gatsby", summary: "A book about a rich guy" },
{ title: "MongoDB for Dummies", summary: "A book about a database" },
{ title: "The Catcher in the Rye", summary: "A book about a kid" },
{ title: "The Da Vinci Code", summary: "A book about a code" },
{ title: "The Hobbit", summary: "A book about a hobbit" },
{ title: "Star Wars: The novel", summary: "A book about a galaxy far far away" },
{ title: "Lief klein konijn", summary: "Een boek over een konijntje" }
]Reguliere expressies
Text search
Index aanmaken
Zoeken op een woord
Zoeken op meerdere woorden
Enkelvoud en meervoud
Stopwoorden
Zoeken op meerdere velden
Language optie
Laatst bijgewerkt