|
|
@@ -1,6 +1,9 @@
|
|
|
+imports:
|
|
|
+ - { resource: elastica/ }
|
|
|
+
|
|
|
fos_elastica:
|
|
|
clients:
|
|
|
- default: { host: 'es', port: '9200' }
|
|
|
+ default: { host: '%env(resolve:ELASTICSEARCH_HOST)%', port: '%env(resolve:ELASTICSEARCH_PORT)%' }
|
|
|
indexes:
|
|
|
search:
|
|
|
use_alias: true
|
|
|
@@ -21,21 +24,4 @@ fos_elastica:
|
|
|
custom_search_analyzer:
|
|
|
type: custom
|
|
|
tokenizer: standard
|
|
|
- filter: [standard, asciifolding ,lowercase]
|
|
|
- types:
|
|
|
- organization:
|
|
|
- persistence:
|
|
|
- driver: orm
|
|
|
- model: 'App\Entity\Organization\Organization'
|
|
|
- listener: ~
|
|
|
- finder: ~
|
|
|
- elastica_to_model_transformer:
|
|
|
- ignore_missing: true
|
|
|
- provider: ~
|
|
|
- mappings:
|
|
|
- id:
|
|
|
- index: not_analyzed
|
|
|
- type: integer
|
|
|
- name:
|
|
|
- analyzer: custom_analyzer
|
|
|
- search_analyzer: custom_search_analyzer
|
|
|
+ filter: [standard, asciifolding ,lowercase]
|