/
config.yml
106 lines (103 loc) · 3.82 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
imports:
- { resource: ./../config/config.yml }
framework:
templating:
engines: ['twig']
twig:
debug: %kernel.debug%
fos_elastica:
clients:
default:
connections:
- url: http://%fos_elastica.host%:%fos_elastica.port%
- host: %fos_elastica.host%
port: %fos_elastica.port%
connectionStrategy: RoundRobin
second_server:
connections:
- url: http://%fos_elastica.host%:%fos_elastica.port%
connection_strategy: RoundRobin
third:
url: http://%fos_elastica.host%:%fos_elastica.port%
indexes:
index:
index_name: foselastica_basic_test_%kernel.environment%
settings:
analysis:
analyzer:
my_analyzer:
type: custom
tokenizer: lowercase
filter: [my_ngram]
filter:
my_ngram:
type: "nGram"
min_gram: 3
max_gram: 5
types:
parent:
dynamic: false
dynamic_templates:
dates:
match: "date_*"
mapping:
type: date
mappings:
field1: ~
field2: ~
search_analyzer: whitespace
index_analyzer: my_analyzer
type:
dynamic: strict
search_analyzer: my_analyzer
date_detection: false
dynamic_date_formats: [ 'yyyy-MM-dd' ]
dynamic_templates:
- dates:
match: "date_*"
mapping:
type: date
- strings:
match: "*"
mapping:
analyzer: english
type: string
numeric_detection: true
properties:
field1: ~
field2:
type: integer
store: false
date: { boost: 5 }
completion:
type: completion
title: { boost: 8, analyzer: my_analyzer }
content: ~
comments:
type: "nested"
properties:
date: { boost: 5 }
content: ~
multiple:
type: "multi_field"
properties:
name: ~
position: ~
user:
type: "object"
approver:
type: "object"
properties:
date: { boost: 5 }
agreement:
type: "attachment"
lastlogin: { type: date, format: basic_date_time }
birthday: { type: date, format: "yyyy-MM-dd" }
dynamic_allowed: { type: object, dynamic: true }
_parent:
type: "parent"
property: "parent"
identifier: "id"
null_mappings:
mappings: ~
empty_index: ~