Can I run MarkLogic optic 'where' with cts.Query in "filtered" manner

55 Views Asked by At

In my Marklogic Optic queries I am using:

  1. AccessPlan.prototype.where
  2. op.fromSearch

with cts.fieldWordQuery as a cts.Query but this query always run as "unfiltered" and gives me false-positives.
Can I somehow pass some options there or "trick" Optic to act as "filtered" query? I didn't find anything in documentation beside the note from ML11 documentation op.FromSearch in ML11 enter image description here

1

There are 1 best solutions below

0
On

Per the docs at https://docs.marklogic.com/op.fromSearch , you unfortunately cannot perform a filtered query given that Optic queries are resolved against the row index.