demo

Input a word and hit search button.

demo section ends.

hint

Contents used in above search are two short quotes from Alice's Adventures in Wonderland by Lewis Carroll. So, "alice" is not a bad choice to search at first.

contents on search
  1. txt/Alice-in-Wonderland.txt
  2. txt/Lewis-Carroll.txt
indexes generated

Index files are formatted as json. Followings are these index files genarated for the above two contents. Two characters and a character indexes for the bigram.

howto make indexes work
  1. Open a console and locate at the folder js-py-ngram-full-text-search.
  2. Place content files in a folder txt.
  3. Make a blank folder idx.
  4. Run python test4_jsngram.py.
  5. Files are created in idx.
  6. Download jquery-3.1.0.min.js from JQuery web site. Another version can work, with just changing the script link uri in html file.
  7. Open example1-JsNgram.html with your FireFox or Safari.
  8. Try search and fun:)
digging deeper