Threshold Property Example

Set the initial fuzziness level for search matching

What is Threshold?

The thresholdValue prop controls how "fuzzy" the search is. It's a number between 0.0 (exact matches only) and 1.0 (very loose matching).

In this example:

thresholdValue=0.6

The search starts with moderate fuzziness (0.6), allowing for typos and partial matches.

Threshold Guide:

  • 0.0 - 0.2: Strict matching, minimal typos allowed
  • 0.3 - 0.5: Moderate fuzziness, some flexibility
  • 0.6 - 0.8: Loose matching, forgiving of mistakes
  • 0.9 - 1.0: Very loose, matches almost anything

🎯 Try it: Use the fuzziness slider to see how different thresholds affect your results. Lower values give more precise results, higher values cast a wider net.

Sample data

  
[
	{
		"japanese": "行く",
		"romaji": "iku",
		"english": "go"
	},
	{
		"japanese": "見る",
		"romaji": "miru",
		"english": "see, look at"
	},
	{
		"japanese": "多い",
		"romaji": "ooi",
		"english": "a lot of, many"
	},
	...
]