Bonjour,
J'essaie, tant bien que mal, de configurer mon analyzer pour ElasticSearch avec ElastiaBundle.
Mais j'ai l'impression que celui-ci n'est pas pris en compte.
Voici la configuration :
fos_elastica:
indexes:
app:
client: default
settings:
analysis:
analyzer:
custom_analyzer :
type : custom
tokenizer: nGram
filter : [my_stopwords, asciifolding ,lowercase, snowball, my_elision, worddelimiter]
custom_search_analyzer :
type : custom
tokenizer: standard
filter : [my_stopwords, asciifolding ,lowercase, snowball, my_elision, worddelimiter]
filter:
snowball:
type: snowball
language: French
my_elision:
type: elision
articles: ["l", "m", "t", "qu", "n", "s", "j", "d"]
my_stopwords:
type: stop
stopwords: [_french_]
ignore_case : true
worddelimiter :
type: word_delimiter
Et voici un de mes mappings :
##### Document #####
Document:
mappings:
id: ~
title:
index_analyzer: custom_analyzer
search_analyzer : custom_search_analyzer
resume:
index_analyzer: custom_analyzer
search_analyzer : custom_search_analyzer
date: ~
documentType:
type: object
properties:
id: ~
name: ~
files:
type: object
properties:
id: ~
name: ~
path : ~
persistence:
driver: orm
model: ManageBundle\Entity\Document
repository: ManageBundle\RepositoryElastica\DocumentRepositoryElastica
provider: ~
listener: ~
finder: ~
J'ai repris une configuration sur :
http://obtao.com/blog/2013/10/configuration-elasticsearch-de-maniere-optimale/
D'avance merci.