在Linux中使用索引文件的搜索算法 [英] File search algorithms using indexing in linux

查看:189
本文介绍了在Linux中使用索引文件的搜索算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现在Linux中使用索引的文件搜索程序......我知道,还有其他一些文件搜索程序,如beagled。但我这样做是为研究目的......我打怎么办索引..我有以下想法,我从Maemo操作映射器应用了.. 例如,如果u有文件名为苏雷什它在文件系统中的文件指数...

I think of implementing a file search program using indexing in linux... I know that there are several other file search programs like beagled. but I am doing this for study purpose... I am struck with how to do indexing.. I have the following idea that I took from maemo-mapper application.. for example if u have file named "suresh" its index in the file system as files...

/home/$USERNAME/.file_search_index/s/u/r/e/s/h/list.txt。这LIST.TXT包含与NAME =苏雷什的所有文件的位置... PLS建议一个更好的主意/算法来实现它......如果有在各种文件搜索技术的任何材料,请张贴....

/home/$USERNAME/.file_search_index/s/u/r/e/s/h/list.txt.. This list.txt contains the location of all files with name = "suresh"... Pls suggest a better idea/algorithm to implement it... And If there is any material on various file search technique pls post it....

推荐答案

您还没有看到locate命令附带的的findutils 的?像beagled,它是免费软件,所以你可以学习code。

You haven't seen the locate command that comes with findutils? Like beagled, it's free software, so you can study the code.

本的findutils包一直在寻找贡献者。

The findutils package is always looking for contributors.

上的数据库格式信息是的http://www.gnu.org/software/findutils/manual/html_node/find_html/Database-Formats.html

Information on the database format is at http://www.gnu.org/software/findutils/manual/html_node/find_html/Database-Formats.html

这篇关于在Linux中使用索引文件的搜索算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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