baohaojun / beagrep

Grep 2G source code in 0.23 second.
http://baohaojun.github.com/beagrep.html
Other
108 stars 20 forks source link

原始的代码目录改名后如何快速更新索引? #5

Closed sunwayforever closed 7 years ago

sunwayforever commented 7 years ago

原始的代码目录为 A, 针对 A 已经建立好索引. 后来把 A 改名为 B, 如何能快速的重新建立索引?

baohaojun commented 7 years ago

这个目前是没有办法快速重建索引的。beagle里用了绝对路径。所以只能重新建一遍索引了。

想要可以快速重建、甚至重用索引的话,beagrep需要做一些比较大的重构,比如不能用绝对路径,只用相对路径,目前没有精力做这块开发。