FOSElasticaBundle/Tests/Functional/app/Basic/config.yml

95 lines
3.2 KiB
YAML
Raw Normal View History

2014-06-08 14:35:38 +02:00
imports:
- { resource: ./../config/config.yml }
framework:
templating:
engines: ['twig']
twig:
debug: %kernel.debug%
2014-06-08 14:35:38 +02:00
fos_elastica:
clients:
default:
2014-07-03 13:58:54 +02:00
connections:
- url: http://localhost:9200
- host: localhost
port: 9200
second_server:
2014-06-08 14:35:38 +02:00
url: http://localhost:9200
indexes:
index:
index_name: foselastica_basic_test_%kernel.environment%
2014-06-08 14:35:38 +02:00
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_templates:
dates:
match: "date_*"
mapping:
type: date
2014-06-08 14:35:38 +02:00
mappings:
field1: ~
field2: ~
2014-08-07 01:36:23 +02:00
search_analyzer: whitespace
index_analyzer: my_analyzer
2014-06-08 14:35:38 +02:00
type:
search_analyzer: my_analyzer
dynamic_templates:
- dates:
match: "date_*"
mapping:
type: date
- strings:
match: "*"
mapping:
analyzer: english
type: string
2014-07-03 11:59:33 +02:00
properties:
2014-06-08 14:35:38 +02:00
field1: ~
field2:
type: integer
2014-06-26 11:51:16 +02:00
store: false
2014-06-08 14:35:38 +02:00
date: { boost: 5 }
2014-07-23 12:00:14 +02:00
completion:
type: completion
2014-06-08 14:35:38 +02:00
title: { boost: 8, analyzer: my_analyzer }
content: ~
comments:
type: "nested"
properties:
date: { boost: 5 }
content: ~
2015-01-08 22:55:57 +01:00
multiple:
type: "multi_field"
properties:
name: ~
position: ~
2014-06-08 14:35:38 +02:00
user:
type: "object"
approver:
type: "object"
properties:
date: { boost: 5 }
2014-07-03 11:59:33 +02:00
agreement:
type: "attachment"
2014-06-08 14:35:38 +02:00
lastlogin: { type: date, format: basic_date_time }
birthday: { type: date, format: "yyyy-MM-dd" }
_parent:
type: "parent"
property: "parent"
identifier: "id"
null_mappings:
mappings: ~