创建索引文件以进行快速搜索的有效方法或算法 [英] Effective way or Algorithm for creation of index files to do a Fast Search

查看:106
本文介绍了创建索引文件以进行快速搜索的有效方法或算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的文件中有10000条消息(请考虑PST文件中的电子邮件)

我需要创建一个索引文件来快速搜索整个消息.也将有一些自定义标签支持搜索.(例如仅主题内",字段内"等)

请让我知道是否有人可以很好地创建索引文件和进行相应的搜索.

Google桌面,Windows 7即时文件搜索,Outlook电子邮件搜索效果很好
(相对于我当前的程序)

我已经广泛地浏览了一下,因为没有正确的方向进行操作.
我目前所拥有的只是一种创建标签及其文件指针的方法,并以表格的方式对其进行细化.
但是我不确定这些方法能否在一天结束时有效地发挥作用.


欢迎所有想法.

Hi,

I am having some 10000''s messages in a file (consider emails in a pst file)

I need to create an index file to search the whole messages quickly. There would be some custom tags support for search too.(like "In subject Only", "In To field" etc)

Kindly let me know if anyone has a good approach for creating index file and corresponding search.

Google Desktop, Windows 7 instant file search, Outlook email search do pretty well
(with respect to my current program)

I have goggled this extensively about didn''t get a right direction to proceed.
All what I have currently is an approach where I create tags and their file-pointer,and in table way and then do a fseek to it.
But I am not sure those would work effectively at the end of day.


All ideas welcome.
Thanks for any help in advance!

推荐答案

我会为每个索引创建一个映射.这样一来,查找特定条目的工作就一直保持不变,创建地图只需要花费一些时间,但是在地图中已经完全解决了.
I''d create a map for each index. That way the effort to look up a particular entry is constant, it just takes some time to create the map, but that is already solved perfectly within map.


这篇关于创建索引文件以进行快速搜索的有效方法或算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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