Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create client side full text search engine with pure JavaScript and HTML5?

Tags:

I need to create client side search engine for an offline html application in offline storage like CDROM. I already create it with Win32 and the catalog file is near 2GB (MDB file).

My offline web application use CEF (Chromium Embedded Framework) and PhoneGAP so I can disable the browser web security. I thought the IndexedDB may help me but , I couldn't find anyway to copy the storage file to other media.

  1. My catalog file will be near 2GB, so I can't read all record to memory.
  2. I need to make the output media cross-platfrom with PhoneGAP, so I can't use activeX objects for final search. Also I can disable web security restriction by that tools.
  3. I can create the catalog file and media with any windows application. the key note that the output file that query the catalog should be be pure JavaScript.

Is there any HTML5 big storage system available (I can disable web security by PhoneGAP) to create offline HTML application search catalog that can be copied to other removable media?

like image 386
Mohammad Nikravan Avatar asked Jul 05 '12 08:07

Mohammad Nikravan


2 Answers

Reyes is doing a fulltext search engine for this exact purpose : https://github.com/reyesr/fullproof

During last september Paris JS, he did a presentation of the concepts behind : http://kornr.net/prez/paris.js22/#/

Hope it answers your need.

like image 90
bobylito Avatar answered Oct 06 '22 16:10

bobylito


I think meanwhile lunr.js must be considered. It has 3-times the stars on Github.

like image 37
vanthome Avatar answered Oct 06 '22 15:10

vanthome