humble_user writes
It would be helpful if I could tell Recoll to add a single directory or somesuch to the existing index.
I find that I put off doing a full index because it takes too long. It may be that if I ran it every night (and I should try this), I wouldn’t have any need to for a partial index update. (Realtime updates might even be feasible if I tried slowing down the reindexing rate). But for now, I am stuck in a situation where I avoid updating the index and therefore aquire files that are not indexed.
This becomes a problem when I acquire a large collection of files that I would like to search immediately.
I would like to tell Recoll to add them to the index, without having to update the whole thing.
medoc writes
From recollindex usage string:
recollindex -r [-f] [-Z] <top >
Recursive partial reindex
"man recollindex" for more details, or maybe I didn’t understand what you want, in which case, please explain why this does not work for you ?
This software is awesome, I did not even remember this was in there :)
Another possibility would be to just create another index for the new collection.
medoc writes
Forgot: this exists at least in 1.20, I did not check older versions.
humble_user writes
Thank you, I’ll have a look at doing this next time I need it.
The function would, however, be greatly enhanced (and more likely used?) if it had GUI controls.
medoc writes
Agreed, I’m putting this on the todo.
humble_user writes
These functions described in recollindex manpages for reindexing only part of the index are ideal:
recollindex -e will erase data for individual files from the database.
The stem expansion databases will not be updated.
With options -i or -e , if no file names are given on the command line,
they will be read from stdin, so that you could for example run:
find /path/to/dir -print | recollindex -e
followed by
find /path/to/dir -print | recollindex -i
to force the reindexing of a directory tree (which has to exist inside
the file system area defined by topdirs in recoll.conf). You could
mostly accomplish the same thing with
find /path/to/dir -print | recollindex -f -Z
recollindex -r mostly works like -i, but the parameter is a single
directory, which will be recursively updated. This mostly does nothing
more than find topdir | recollindex -i
biomimetics writes
this feature to reindex only a filelist/directory would also be very useful in the results window of recoll-gui.
use case:
#!python
search for something which you would like to update
get result list
manually edit files
"right click on result list": popup: reindex this file/ reindex this file folder / reindex result list
medoc writes
Add GUI dialog to start indexing with special options. Closes issue #264
→ <<cset eae5661db0df > >
medoc writes
Add GUI dialog to start indexing with special options. Closes issue #264
→ <<cset 26f038de86dd > >