google / zoekt

Fast trigram based code search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Append to old index

Som3 opened this issue · comments

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?

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 ?

No. You should index the directories separately.

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

use the r: operator.