google / zoekt

Fast trigram based code search
1.69k stars 113 forks source link

Append to old index #67

Closed Som3 closed 5 years ago

Som3 commented 5 years ago

I have a folder with many projects and indexed it, later create new project into a folder and how can I add it project to the index without reindexing all folder?

Som3 commented 5 years ago
mkdir folderA
cd folderA
mkdir folderB
zoekt-index -index_dir=/home/user/my-index .

after

cd folderA
mkdir folderC

Can I add folderC to exists index /home/user/my-index ?

hanwen commented 5 years ago

No. You should index the directories separately.

Som3 commented 5 years ago

If indexed separately and search without specifing index_dir - can I define from what project it matched result?

hanwen commented 5 years ago

use the r: operator.