A search for “habit” should find “7 Habits of Highly Effective People,” while “abit” should not. Prefix matching handles this by checking whether a prefix begins at a word boundary, not merely whether the whole title starts with it. section 15.4
Case-insensitive word-prefix matching
Lowercase both sentence and prefix, then build a regular expression from the prefix: \\b matches a word boundary. Thus \\bHabits and \\b7 Habits match “7 Habits of Highly Effective People,” while “abits” does not. section 15.4
