在Linux中使用索引文件的搜索算法算法、索引、文件、Linux

2023-09-11 05:14:32 作者:可爱到吐

我想实现在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