Skip to content

Commit

Permalink
v0.6.2 Improve Suggestion, Improve Coverage, Add Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Feb 23, 2019
1 parent 9434acc commit e1ae647
Show file tree
Hide file tree
Showing 13 changed files with 1,832 additions and 296 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -13,8 +13,8 @@
<h1></h1>
<h3>Web's fastest and most memory-flexible full-text search library with zero dependencies.</h3>

It is time for a quantum leap in full-text searching algorithms. When it comes to raw search speed <a href="https://raw.githack.com/nextapps-de/flexsearch/master/test/benchmark.html" target="_blank">FlexSearch outperforms every single searching library out there</a> and also provides flexible search capabilities like multi-field search, phonetic transformations or partial matching.
Depending on the used <a href="#options">options</a> it also provides the <a href="#memory">most memory-efficient index</a>. FlexSearch introduce a new scoring algorithm called <a href="#contextual">"contextual index"</a> based on a high-performance <a href="#dictionary">pre-scored lexical dictionary</a> architecture which actually performs queries up to 100,000 times faster than Apache Lucene.
When it comes to raw search speed <a href="https://raw.githack.com/nextapps-de/flexsearch/master/test/benchmark.html" target="_blank">FlexSearch outperforms every single searching library out there</a> and also provides flexible search capabilities like multi-field search, phonetic transformations or partial matching.
Depending on the used <a href="#options">options</a> it also provides the <a href="#memory">most memory-efficient index</a>. FlexSearch introduce a new scoring algorithm called <a href="#contextual">"contextual index"</a> based on a <a href="#dictionary">pre-scored lexical dictionary</a> architecture which actually performs queries up to 100,000 times faster than other libraries.
FlexSearch 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.

FlexSearch Server is available here: <a target="_blank" href="https://github.com/nextapps-de/flexsearch-server">https://github.com/nextapps-de/flexsearch-server</a>.
Expand Down
19 changes: 17 additions & 2 deletions compile.js
Expand Up @@ -13,6 +13,8 @@ fs.existsSync("log") || fs.mkdirSync("log");

var flag_str = "";
var language_out;
var formatting;
var compilation_level;

var options = (function(argv){

Expand All @@ -31,6 +33,14 @@ var options = (function(argv){

language_out = val;
}
else if(index === "FORMATTING"){

formatting = val;
}
else if(index === "COMPILATION_LEVEL"){

compilation_level = val;
}
else{

flag_str += " --define='" + index + "=" + val + "'";
Expand All @@ -50,6 +60,11 @@ var options = (function(argv){

var parameter = (function(opt){

if(formatting && !opt["formatting"]){

opt["formatting"] = formatting;
}

var parameter = '';

for(var index in opt){
Expand All @@ -63,7 +78,7 @@ var parameter = (function(opt){
return parameter;
})({

compilation_level: "ADVANCED_OPTIMIZATIONS", //"WHITESPACE"
compilation_level: compilation_level || "ADVANCED_OPTIMIZATIONS", //"WHITESPACE"
use_types_for_optimization: true,
new_type_inf: true,
jscomp_warning: "newCheckTypes",
Expand All @@ -80,7 +95,7 @@ var parameter = (function(opt){
output_manifest: "log/manifest.log",
output_module_dependencies: "log/module_dependencies.log",
property_renaming_report: "log/renaming_report.log"
//formatting: "PRETTY_PRINT"
//formatting: formatting || "DEFAULT" //"PRETTY_PRINT"
});

var release = options["RELEASE"];
Expand Down
50 changes: 25 additions & 25 deletions dist/flexsearch.compact.js

Large diffs are not rendered by default.

86 changes: 43 additions & 43 deletions dist/flexsearch.es5.js

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions dist/flexsearch.light.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1ae647

Please sign in to comment.