README update. (No code changes.)
Added es modules support for bundlers via "module" field and for node via "exports" field. Commonjs output is no longer provided. Entry point is UMD now. UMD/ESM are bundled with rollup which reduced minified bundle size twice from 17432 to 7759 bytes! Flow types are distributed with sources.
Don't inherit from the default Object for the token dictionary. (davidlukerice - #73)
Throw an error if Search
is instantiated without the required uidFieldName
constructor parameter.
Search uid field can now be an array (for nested/deep keys).
Fixed package.json
to include correct files.
Performance tuning and removal of eager deopts.
Behind the scenes, this release also includes a rewrite from TypeScript to Flowtype. The external API should not be impacted by this rewrite however.
Fixed (hopefully) previous broken build.
Simple tokenizer now supports cyrillic. (De-Luxis - #21)
Fixed a bug in TfIdfSearchIndex
that caused errors when indexing certain reserved keywords (eg "constructor").
Fixed tokenizer bug affecting IE <= 10 that caused prefix and substring token strategies incorrectly index terms.
Replaced array.push.call
with array.concat
in addDocuments
.
This avoids potential stack overflow for large documents arrays.
Search.addIndex
supports Array
parameter for nested values.
Search
indexing supports non-string values (eg numbers).
Special thanks to @konradjurk for this release.
Small tweak to Node export check to avoid module is not defined
error for browser-based users.
Modified export to better support Node environment (thanks to @scommisso).
Added ISearchIndex
interface in order to support TF-IDF (enabled by default).
Removed IPruningStrategy
; it didn't seem like it added sufficient value to offset performance costs.
Udpated stop-words list to avoid filtering Object.prototype
properties.
Refactored stemming and stop-word support to be based on ITokenizer
decorators for better accuracy.
Updated README examples with more info.
Added JsSearch
module wrapper around library and renamed JsSearch
class to Search
.
Added stemming support by way of the new StemmingSanitizerDecorator
class.
Renamed WhitespaceTokenizer
to SimpleTokenizer
and added better support for punctuation.
Added StopWordsIndexStrategyDecorator
to support stop words filtering.
Initial release!