Feat : ajout nouveau type search #7317 @0h15

This commit is contained in:
2018-09-25 16:40:34 +02:00
parent 3ccf2b9604
commit 9762aee7ae
2 changed files with 13 additions and 11 deletions
@@ -2,6 +2,18 @@ fos_elastica:
clients:
default: { host: %elastic_host%, port: %elastic_port% }
indexes:
tags:
types:
tagsfr:
mappings:
publicTag:
analyzer: keyword
type: text
persistence:
driver: orm
model: AppBundle\Entity\Ad
provider: ~
finder: ~
ads:
settings:
index:
@@ -41,16 +53,6 @@ fos_elastica:
max_gram: 10
token_chars: [letter,digit]
types:
tagsfr:
mappings:
publicTag:
analyzer: keyword
type: text
persistence:
driver: orm
model: AppBundle\Entity\Ad
provider: ~
finder: ~
adfr:
mappings:
title:
@@ -21,7 +21,7 @@ services:
app.ad_tags_searcher:
class: AppBundle\Utils\Services\AdSearcher
arguments: ['@fos_elastica.finder.ads.tagsfr']
arguments: ['@fos_elastica.finder.tags.tagsfr']
# Twig Extensions
twig.country_extension: