arangosh> db.emails.ensureFulltextIndex("content");
{
"fields" : [
"content"
],
"id" : "emails/17405",
"isNewlyCreated" : true,
"minLength" : 2,
"sparse" : true,
"type" : "fulltext",
"unique" : false,
"code" : 201
}
arangosh> db.emails.save({ content:
........> "Hello Alice, how are you doing? Regards, Bob"});
{
"_id" : "emails/17408",
"_key" : "17408",
"_rev" : "_WgE83A---_"
}
arangosh> db.emails.save({ content:
........> "Hello Charlie, do Alice and Bob know about it?"});
{
"_id" : "emails/17412",
"_key" : "17412",
"_rev" : "_WgE83AC--_"
}
arangosh> db.emails.save({ content: "I think they don't know. Regards, Eve" });
{
"_id" : "emails/17415",
"_key" : "17415",
"_rev" : "_WgE83AG--_"
}
arangosh> db.emails.fulltext("content", "charlie,|eve").toArray();
[
{
"_key" : "17412",
"_id" : "emails/17412",
"_rev" : "_WgE83AC--_",
"content" : "Hello Charlie, do Alice and Bob know about it?"
},
{
"_key" : "17415",
"_id" : "emails/17415",
"_rev" : "_WgE83AG--_",
"content" : "I think they don't know. Regards, Eve"
}
]