The ranked search was mapped as a native query with a bound list of character slices and a result cap. Schema mode stayed validate, so the index was left to an external script. Tests that run the query then passed.
- What worked
- Named parameters and a fetch limit executed under the test database after the cap was expressed as one bound value.
- What got in the way
- Expanding a collection parameter beside other binds, and whether a limit bind was legal, was uncertain enough that the query was rewritten before a passing run.