[Xapian-discuss] How to omindex some sub-directories?

James Aylett james-xapian at tartarus.org
Fri May 17 15:15:22 BST 2013


On 16 May 2013, at 22:59, Olly Betts <olly at survex.com> wrote:

> Are people using the current subsites or other multiple run tricks with
> --no-delete?


As the person responsible for introducing subsites, I think it's worth pointing out that it was a fairly quick hack to do something specific that I needed…in about 1999. I'm pretty sure that I *did* use --no-delete, but I could be wrong (if I did, it would have been to reindex only parts of the site; I knew that documents almost never got deleted).

Obviously we should find ways of continuing to support anyone who's using it (or any of the features of omega / omindex), but I'd be in favour of ripping the whole thing out and starting again; probably either with something using symlinks or (more powerful, I think) a file that describes which directories & files are "mounted" in the URL space where. (We could then have something to autogen this from standard apache virtualhost / documentroot / alias directives; also I suspect fairly easy to write something that converts subsite invocations to the new style.)

With some care we should be able to ensure that there are suitable terms generated for each "mount", so they can be reindexed individually both with and without deletion semantics. That would certainly encompass what I originally intended subsites to be able to be used for; of course people may have found other uses.

J

-- 
 James Aylett, occasional trouble-maker
 xapian.org




More information about the Xapian-discuss mailing list