Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

microsoftarchive/trie.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Work-In-Progress

Trie.JS

Build Status

Yet another trie-structure implementation in JS to help solve the problem of missing Full Text Search in IndexedDB.

It persists on IndexedDB right now, but there are plans for FileSystemAPI based persistance later.


Done

  • Basic trie structure generation
  • Lookup in the trie
  • IndexedDB based persistance
  • Build tool
  • Option to enable prefix-only indexing (much faster)
  • Trie Compresser (for exporting)

TODO

  • Spec Runner
  • Handle older IDB specs & other errors around IDB
  • Pre-open connection, for faster loading of indices
  • Trie Decompresser (for importing)
  • Make trie smaller (use a better structure)
  • Ranking (weight based)
  • Alternate tokenizers
  • FileSystemAPI based persistance of the index
  • Stemming ? (English only at first & optional)
  • Extra related text (for matching across languages), like deustchland for germany & भारत for India
  • Character replacement in alternate spelling for non-english names (phonetic)
  • AND / OR queries (how to merge results from multiple tokens)

Guidelines

  • JSHinted with the included .jshintrc, in strict mode
  • Specs in mocha

Links

About

Trie structure based text search for the browser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published