oneof

Purpose

Finds documents that contain at least one of the listed arguments. This function is the alias for the orn() function and is equivalent to the operator or.

Syntax

oneof(term_1, term_2, [term_3,…​])

Arguments

All of the arguments must be of the same data type or PolyAnalyst will report an error. At least two arguments must be provided.

Returned Value

Documents matching the query.

Examples

oneof("dog", "cat", "elephant", "horse") = orn(dog, cat, elephant, horse) = dog or cat or elephant or horse returns dog or cat or elephant or horse.