如何用纯JavaScript和HTML5创建客户端全文搜索引擎? [英] How to create client side full text search engine with pure JavaScript and HTML5?

查看:167
本文介绍了如何用纯JavaScript和HTML5创建客户端全文搜索引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在CDROM等脱机存储中为脱机HTML应用程序创建客户端搜索引擎。我已经使用Win32创建它,目录文件接近2GB(MDB文件)。

我的离线网络应用程序使用CEF(Chromium Embedded Framework)和PhoneGAP,因此我可以禁用浏览器网络安全。
我认为IndexedDB可以帮助我,但我无法找到任何将存储文件复制到其他媒体。


  1. 我的目录文件将近2GB,所以我无法读取所有记录到内存。

  2. 我需要使用PhoneGAP交叉输出媒体,因此我无法使用activeX对象进行最终搜索。此外,我可以禁用该工具的网络安全限制。

  3. 我可以使用任何Windows应用程序创建目录文件和媒体。请注意,查询目录的输出文件应该是纯JavaScript。

是否有任何HTML5大型存储系统可用(I可以通过PhoneGAP禁用网络安全)来创建可以复制到其他可移动媒体的离线HTML应用程序搜索目录?

Reyes是为此目的做一个全文搜索引擎: https://github.com/reyesr/fullproof



在去年9月巴黎JS期间,他做了一些背后的概念介绍: http://kornr.net/prez/paris.js22/#/

希望它能够满足您的需求。

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?

解决方案

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.

这篇关于如何用纯JavaScript和HTML5创建客户端全文搜索引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆