matchPrefix

fun matchPrefix(key: String, prefix: String)

Keyword prefix match. Byte-wise and case-sensitive, like exact keyword matching.

A keyword index built with prefixMatching = true serves this from the index; without one the condition is still correct and is checked point by point. Strict mode is the exception: with unindexedFilteringRetrieve or unindexedFilteringUpdate off, a prefix condition on a field with no prefix-enabled index is refused rather than run.