needs_like_fallback

Function needs_like_fallback 

Source
pub fn needs_like_fallback(query: &str) -> bool
Expand description

Determine if a query should use LIKE fallback instead of FTS5 trigram

Returns true if:

  • Query is a single CJK character, OR
  • Query is two CJK characters

Trigram tokenizer requires 3+ characters for matching, so we use LIKE for shorter CJK queries to ensure they work.