def _get_indexer(location):
    """wrapper around "indexer.get_indexer" to enable a globally preferred
    indexing engine selection

    create an indexer based on the preference order 'default_engine'

    @param location: the path of the database to be created/opened
    @type location: str
    @return: the resulting indexing engine instance
    @rtype: CommonIndexer.CommonDatabase
    """
    return indexing.get_indexer(location, [default_engine])
Esempio n. 2
0
def _get_indexer(location):
    """wrapper around "indexer.get_indexer" to enable a globally preferred
    indexing engine selection

    create an indexer based on the preference order 'default_engine'

    :param location: the path of the database to be created/opened
    :type location: str
    :return: the resulting indexing engine instance
    :rtype: CommonIndexer.CommonDatabase
    """
    return indexing.get_indexer(location, [default_engine])