match()
function.
In the following example we’ll:
title
and description
text fields and add a keyword index to both of them.title
and description
fields using the match()
function.title
and description
text fields and add a keyword index to both of them:
title
and description
fields using the match()
function.
We’ll query the collection to match the term "great"
in the title
field or the term "novel"
in any of the keyword-indexed text fields:
match()
function will by default execute against all
fields with a keyword index.