【发布时间】:2014-01-27 20:37:52
【问题描述】:
我尝试配置 ElasticSearch:
fos_elastica:
indexes:
test:
settings:
index:
analysis:
analyzer:
autocomplete:
type: custom
tokenizer: lowercase
filter : [my_ngram]
filter:
my_ngram:
type: "nGram"
min_gram: 2
max_gram: 20
types:
Track:
mappings:
title: { analyzer: autocomplete }
artist: { analyzer: autocomplete }
persistence:
driver: orm
model: Website\TestBundle\Entity\Track
provider: ~
listener: ~
finder: ~
这是我在执行“http://mydomain.com:9200/test/_analyze?analyzer=autocomplete&text=rih”时的错误
{"error":"ElasticSearchIllegalArgumentException[failed to find analyzer [autocomplete]]","status":400}
有什么问题?谢谢
【问题讨论】:
标签: symfony elasticsearch yaml