matchCost

open override fun matchCost(): Float

An estimate of the expected cost to determine that a single document .matches. This can be called before iterating the documents of .approximation. Returns an expected cost in number of simple operations like addition, multiplication, comparing two numbers and indexing an array. The returned value must be positive.