Re: Index filtering by filename

Olly Betts <[email protected]> Sun, 1 May 2022 06:11:44 +0100
Newsgroups gmane.comp.search.xapian.general
Message-ID <[email protected]>
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