为了改善嵌入式环境下用户海量文本查询的方便性,提高文本查询速度、降低资源消耗,建立了一个用于Windows Mobile的全文搜索系统。利用委托机制进行异步搜索;利用正则表达式进行关键词的模糊或精确查询,设计了两种查询模式。搜索完毕统计搜索结果将含有关键词的文本信息及其存储路径以HTMl的形式返回,根据实际搜索数量可设置每屏显示的数量。开发了软件系统,实际数据测试结果表明了该系统的可用性和算法的高效性。
To improve customers convenience of massive text inquires,enhance text inquires the speed and reduce resource consumption in the embedded environment,full text search system used in Windows Mobile(WM) is constructed.A delegation mechanism is used to asynchronism search,while the regular expression is used to fuzzy or accurate query of the keywords,two kinds of query model is designed.Statistical search results is used to return the text messaging included the keywords and storage path by HTML form,according to the actual number of searches,the amount of each screen can be set.Finally,system availability and the efficiency of the algorithm are validated by practical data.