[Xapian-tickets] [Xapian] #619: Omega: Indexing folders

Xapian nobody at xapian.org
Sat Oct 19 05:07:34 BST 2019


#619: Omega: Indexing folders
--------------------------+-------------------------------
 Reporter:  peterpan      |             Owner:  olly
     Type:  enhancement   |            Status:  new
 Priority:  normal        |         Milestone:
Component:  Omega         |           Version:  git master
 Severity:  normal        |        Resolution:
 Keywords:  GoodFirstBug  |        Blocked By:
 Blocking:                |  Operating System:  All
--------------------------+-------------------------------
Changes (by olly):

 * keywords:   => GoodFirstBug
 * version:  1.2.14 => git master


Comment:

 A neat way to handle this would be to allow directories to be mapped to
 mime-type `inode/directory` (which is what `file --mime-type DIRECTORY`
 reports) if you want to index them - e.g. with `omindex --mime-
 type=/:inode/directory` (which would need a small adjustment to `--mime-
 type` to handle a `/` specially) - and then
 `--filter=inode/directory:true` would take care of indexing directories
 only by metadata (or you could provide a command if there was some way to
 extract text given a directory path in your particular situation).

 #771 is related - for that we want to be able to specify `--mime-
 type=.key/:application/vnd.apple.keynote` so that a directory `foo.key` is
 handled specially.

 Probably we should support trailing `/` on glob patterns too so `--mime-
 type-match='X*/':inode/directory` should all indexing only directories
 which start `X`, etc.

--
Ticket URL: <https://trac.xapian.org/ticket/619#comment:1>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list