feature request for recollindex: take a list of files and print the ones that aren't already indexed
Sometimes I want to see what files in a given directory are in recoll's index and which ones aren't. Since recollindex does not have this built-in (as far as I know), I generally do something like this as a workaround:
xapian-delve -1 -A Q"$(realpath /path/to/directory/)" ~/.recoll/xapiandb/
However, there are some issues with this approach:
-
There is no way to list files that aren't indexed, which is often more interesting since I may notice filetypes I want to be indexed but haven't added yet.
-
The output is a little idiosyncratic and for long filenames is different from the true filename. This means it cannot be used as input to other programs that take a list of paths.
-
This shows what files are currently in the index, but not which would be added if recollindex were to run.
This is a tentative feature request for recollindex
to take a list of paths from stdin and output only those that meet particular criteria, such as:
-
indexed
: those that are already in the index -
not-indexed
: those that are not already in the index -
index-candidates
: those thatrecollindex
would index if it were run -
not-index-candidates
: those thatrecollindex
would ignore if it were run
The usage I have in mind might look something like this:
find . -type f | recollindex -o not-indexed | less
The -o
is a mnemonic for "output" or "only" but of course could be something else.