![]() The configuration profile as a shortcut or as a base for your custom settings.Ĭhoose one of the built-ins or pass a custom tokenizer function.Įnable/Disable and/or set capacity of cached entries. Make use of the right options can really improve your results as well as memory economy and query time. Methods export and also import are always async as well as every method you call on a Worker-based Index.įlexSearch is highly customizable. * For each of those methods there exist an asynchronous equivalent:Īsync methods will return a Promise, alternatively you can pass a callback function as the last parameter. You will get back a Promise or you can provide a callback function as the last parameter alternatively. ![]() Įvery method called on a Worker index is treated as async. Worker-Support in documents needs to be enabled by just passing the appropriate option during creation. Therefore, a WorkerIndex basically works like a standard FlexSearch Index. The worker inherits from type Index and does not inherit from type Document. search ( text, limit, options, callback ) worker. search ( text, limit, options ) worker. ![]() The most of you probably need just one of them according to your scenario. Document is multi-field index which can store complex JSON documents (could also exist of worker indexes).Worker / WorkerIndex is also a flat index which stores id-content-pairs but runs in background as a dedicated worker thread.Index is a flat high performance index which stores id-content-pairs.This way contextual search also improves the results of relevance-based queries on a large amount of text data. The basic idea of this concept is to limit relevance by its context instead of calculating relevance through the whole distance of its corresponding document. A Contextual Search incredibly boost up queries to a complete new level but also requires some additional memory (depending on depth). Read here get more information about and how to enable.įlexSearch introduce a new scoring mechanism called Contextual Search which was invented by Thomas Wilkerling, the author of this library. Note: This feature is disabled by default because of its extended memory usage. Operation per seconds, higher is better, except the test "Memory" on which lower is better. Run Comparison: Performance Benchmark "Gulliver's Travels" The Node.js package includes all features from .Ĭustomizable Charset/Language (Matcher, Encoder, Tokenizer, Stemmer, Filter, Split, RTL) Just exchange the version number from the URLs above with "master", e.g.: "/flexsearch/ 0.7.31/dist/" into "/flexsearch/ master/dist". Npm install flexsearch Get Latest Nightly (Do not use for production!) * The bundle "" includes polyfills for EcmaScript 5 Support. The /dist/module/ folder of this Github repository FlexSearch introduce a new scoring algorithm called "contextual index" based on a pre-scored lexical dictionary architecture which actually performs queries up to 1,000,000 times faster compared to other libraries.įlexSearch also provides you a non-blocking asynchronous processing model as well as web workers to perform any updates or queries on the index in parallel through dedicated balanced threads. When it comes to raw search speed FlexSearch outperforms every single searching library out there and also provides flexible search capabilities like multi-field search, phonetic transformations or partial matching.ĭepending on the used options it also provides the most memory-efficient index. Read the documentation of new language encoding features: Read the documentation of new features and changes: ![]() This new version has a good compatibility with the old generation, but it might require some migrations steps in your code. The result is an improvement in every single aspect and covers tons of enhancements and improvements which was collected over the last 3 years. FlexSearch v0.7.0 is a modern re-implementation and was newly developed from the ground up. Web's fastest and most memory-flexible full-text search library with zero dependencies.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |