Listing 6. Adding Files to an Index

# Local index
$ find ~ -name ".*" -prune -o -print | findexadd \
  -P ~/clucene-index --filelist-stdin
$ find ~ -name ".*" -prune -o -print | feaindexadd \
  -P ~/clucene-index --filelist-stdin

# File server index, run on fshost
$ find /documents | findexadd \
  -P /ferris-index/fulltext \
  --filelist-stdin
$ find /documents | feaindexadd \
  -P /ferris-index/metadata \
  --filelist-stdin

