Commit 32ee1449 authored by Yann Mombrun's avatar Yann Mombrun
Browse files

Fixing a lot of python typo in new configuration file. Now enables...

Fixing a lot of python typo in new configuration file. Now enables limas-indexer and limas-web to start with that configuration file even if visor is not started (and neither the imagegetter)
parent a80abd00
......@@ -67,15 +67,15 @@ mkDirs(LUCENE_INDICES_PATH)
def configImageGetter(config):
config.imageGetterPort= IMAGE_GETTER_PORT
config.imageBasePath = os.path.join((os.path.join(COLLECTIONS_PATH, COLLECTION), 'imagegetter')
config.imageBasePath = os.path.join(os.path.join(COLLECTIONS_PATH, COLLECTION), 'imagegetter')
config.urlPrefix = URL_PREFIX + '/imagegetter'
mkDirs(config.imageBasePath)
def configCategoryT(ksf):
mkDirs(os.path.join(VISOR_INDEX_PATH, 'classifiers')
mkDirs(os.path.join(VISOR_INDEX_PATH, 'annotations')
mkDirs(os.path.join(VISOR_INDEX_PATH, 'features')
mkDirs(os.path.join(VISOR_INDEX_PATH, 'classifiers'))
mkDirs(os.path.join(VISOR_INDEX_PATH, 'annotations'))
mkDirs(os.path.join(VISOR_INDEX_PATH, 'features'))
ksf.config.datasetName = COLLECTION
ksf.config.basePath = VISOR_INDEX_PATH
ksf.config.retrieveShots = False
......@@ -111,9 +111,9 @@ implementation in {
}
'''
services = [
('#meta', 'LUCENE', 'Meta', COLLECTION, '%s in metadata', os.path.join(LUCENE_INDICES_PATH,'meta_lucene.idx'), METADATA_FIELDS),
('#meta', 'LUCENE', 'Meta', COLLECTION, '%s in metadata', os.path.join(LUCENE_INDICES_PATH, 'meta_lucene.idx'), METADATA_FIELDS),
('#speech', 'LUCENE', 'Speech', COLLECTION, '%s in speech', os.path.join(LUCENE_INDICES_PATH, 'asr_lucene.idx'), ASR_FIELDS),
('#category-t', 'CpuVisor', 'OXUCat', COLLECTION, 'broad term '%s'', '127.0.0.1:' + VISOR_PORT, configCategoryT),
('#category-t', 'CpuVisor', 'OXUCat', COLLECTION, "broad term '%s'", '127.0.0.1:' + str(VISOR_PORT), configCategoryT),
('#entity', 'MONGODB_ENTITY', 'Entity', COLLECTION, '%s in video content', '', None),
('#instance-i', 'SOLR', 'INRIAIns', COLLECTION, 'near duplicate images', 'http://localhost:8181/pastec-indexer/pastec/search/' + COLLECTION + '/%s', None)
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment