0

Please see the attached image with this question. If you see the documentation of cts:and-query-options, everything is fine except the example.

In the example, it is returning cts:and-query-queries instead of cts:and-query-options.

enter image description here

DevNinja
  • 1,459
  • 7
  • 10

1 Answers1

1

Yes, the example query for cts:and-query-options() is incorrect, using cts:and-query-queries() instead.

let $query :=
  cts:and-query((
    cts:word-query("to be or"),
    cts:word-query("or not to be")))
return cts:and-query-queries($query)
=> ()

should be:

let $query :=
cts:and-query((
  cts:word-query("to be or"),
  cts:word-query("or not to be")
))
return cts:and-query-options($query)
=> ()

A documentation bug has been filed in order to get that corrected.

Mads Hansen
  • 63,927
  • 12
  • 112
  • 147