shibukawa / oktavia

Full text search engine for JS environments
MIT License
70 stars 11 forks source link

Can't search other case string #1

Open shibukawa opened 11 years ago

shibukawa commented 11 years ago

"class" is not match with "Class".

tuchida commented 10 years ago

It store position of upper case char, and create an index with lower case. https://github.com/tuchida/oktavia/commit/3e1b7b1486ed07a26a976ab9959a8b60fd9aad5d

Probably, _upperChars is sparse bit vector because upper case characters is less (in the case of Japanese in particular). There should be efficient implementation than BitVector. When I tried, the size of the search index increase about 2%.