Companion

object Companion

Properties

Link copied to clipboard
const val defaultMaxEdits: Int
Link copied to clipboard
const val defaultMaxExpansions: Int = 50
Link copied to clipboard
const val defaultPrefixLength: Int = 0
Link copied to clipboard
const val defaultTranspositions: Boolean = true

Functions

Link copied to clipboard

Creates a default top-terms blended frequency scoring rewrite with the given max expansions

Link copied to clipboard
fun floatToEdits(minimumSimilarity: Float, termLen: Int): Int

Helper function to convert from "minimumSimilarity" fractions to raw edit distances.

Link copied to clipboard
fun getFuzzyAutomaton(term: String, maxEdits: Int, prefixLength: Int, transpositions: Boolean): CompiledAutomaton

Returns the CompiledAutomaton internally used by FuzzyQuery to match terms. This is a very low-level method and may no longer exist in case the implementation of fuzzy-matching changes in the future.