Index filtering by filename

Olly Betts olly at survex.com
Sun May 1 06:11:44 BST 2022


On Thu, Apr 28, 2022 at 09:31:12PM -0500, aidan wrote:
> Is it possible to filter, skip, or ignore specific files by name instead of
> MIME type? I run an Apache web server with multiple "index.html" files in
> various sub directories that I would prefer were not included in the omindex
> database.

This should work:

omindex --mime-type-match=index.html:ignore [other options]

This gets checked before MIME type mappings based on extension, so other
HTML files will still get handled as normal.

Cheers,
    Olly



More information about the Xapian-discuss mailing list