return an appropriate indexer for the given directory
If the directory already exists, then we check, if one of the
available indexers knows how to handle it. Otherwise we return the first
available indexer.
- Parameters:
basedir (string) - the parent directory of (possible) different indexing databases
- Returns: subclass of CommonIndexer.CommonDatabase
- the class of the most appropriate indexer
- Raises:
IndexError - there is no indexing engine available
ValueError - the database location already exists, but we did not find a
suitable indexing engine for it
OSError - any error that could occour while creating or opening the database
|