Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does one create the incremental index?

create incremental index
0
Posted

How does one create the incremental index?

0

One method is by using the -N switch to pass a file path to Swish-e when indexing. It will only index files that have a last modification date newer than the file supplied with the -N switch. This option has the disadvantage that Swish-e must process every file in every directory as if they were going to be indexed (the test for -N is done last right before indexing of the file contents begin and after all other tests on the file have been completed) — all that just to find a few new files. Also, if you use the Swish-e index file as the file passed to -N there may be files that were added after indexing was started, but before the index file was written. This could result in a file not being added to the index. Another option is to maintain a parallel directory tree that contains symlinks pointing to the main files. When a new file is added (or changed) to the main directory tree you create a symlink to the real file in the parallel directory tree. Then just index the symlink director

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123