From d77a2928a5b5fa00e7420cdd3891ab4efa666d3a Mon Sep 17 00:00:00 2001 From: nmaillat Date: Sun, 23 Feb 2020 11:53:21 +0100 Subject: [PATCH] Facets default setting --- config/configuration.sample.yml | 48 ++++++++++++++++++++++++++++++--- lib/conf.d/configuration.yml | 46 ++++++++++++++++++++----------- 2 files changed, 75 insertions(+), 19 deletions(-) diff --git a/config/configuration.sample.yml b/config/configuration.sample.yml index f3c61ff9b5..90e21be3df 100644 --- a/config/configuration.sample.yml +++ b/config/configuration.sample.yml @@ -22,14 +22,54 @@ main: path: '/tmp/db.sqlite' charset: UTF8 cache: - type: MemcacheCache + type: redis options: host: localhost - port: 11211 + port: 6379 search-engine: - type: phrasea + type: elasticsearch options: - facets: [] + host: elasticsearch + port: 9200 + index: '' + shards: 3 + replicas: 0 + minScore: 2 + highlight: true + populate_order: RECORD_ID + populate_direction: DESC + activeTab: '' + facets: + _base: + limit: 10 + _collection: + limit: 10 + _doctype: + limit: 10 + _camera_model: + limit: 0 + _iso: + limit: 0 + _aperture: + limit: 0 + _shutterspeed: + limit: 0 + _flashfired: + limit: 0 + _framerate: + limit: 0 + _audiosamplerate: + limit: 0 + _videocodec: + limit: 0 + _audiocodec: + limit: 0 + _orientation: + limit: 0 + _colorspace: + limit: 0 + _mimetype: + limit: 0 task-manager: status: started enabled: true diff --git a/lib/conf.d/configuration.yml b/lib/conf.d/configuration.yml index de1eab7f0a..a733c5f937 100644 --- a/lib/conf.d/configuration.yml +++ b/lib/conf.d/configuration.yml @@ -39,21 +39,37 @@ main: populate_order: RECORD_ID populate_direction: DESC activeTab: '#elastic-search' - base_aggregate_limit: 10 - collection_aggregate_limit: 10 - doctype_aggregate_limit: 0 - camera_model_aggregate_limit: 0 - iso_aggregate_limit: 0 - aperture_aggregate_limit: 0 - shutterspeed_aggregate_limit: 0 - flashfired_aggregate_limit: 0 - framerate_aggregate_limit: 0 - audiosamplerate_aggregate_limit: 0 - videocodec_aggregate_limit: 0 - audiocodec_aggregate_limit: 0 - orientation_aggregate_limit: 0 - colorspace_aggregate_limit: 0 - mimetype_aggregate_limit: 0 + facets: + _base: + limit: 10 + _collection: + limit: 10 + _doctype: + limit: 10 + _camera_model: + limit: 0 + _iso: + limit: 0 + _aperture: + limit: 0 + _shutterspeed: + limit: 0 + _flashfired: + limit: 0 + _framerate: + limit: 0 + _audiosamplerate: + limit: 0 + _videocodec: + limit: 0 + _audiocodec: + limit: 0 + _orientation: + limit: 0 + _colorspace: + limit: 0 + _mimetype: + limit: 0 task-manager: status: started enabled: true