Php FOS ElasticaSearch无法识别的选项索引\分析仪搜索\分析仪映射
我被Symfony错误阻止: 无法识别的选项索引\u分析器、搜索\u分析器、下的映射 fos_elastica.indexes.optro.types.technical_assistance 我使用Symfony 3.4.11和FOS ElasticSearch 5.03 怎么了?文件缩进? 配置文件的一部分:Php FOS ElasticaSearch无法识别的选项索引\分析仪搜索\分析仪映射,php,symfony,yaml,foselasticabundle,Php,Symfony,Yaml,Foselasticabundle,我被Symfony错误阻止: 无法识别的选项索引\u分析器、搜索\u分析器、下的映射 fos_elastica.indexes.optro.types.technical_assistance 我使用Symfony 3.4.11和FOS ElasticSearch 5.03 怎么了?文件缩进? 配置文件的一部分: types: technical_assistance: index_analyzer: my_nGram_index_analyzer search_analyz
types:
technical_assistance:
index_analyzer: my_nGram_index_analyzer
search_analyzer: my_nGram_search_analyzer
mappings:
subject: { boost: 2 }
description: ~
equipment_reference: ~
filename: ~
trackingNumber: ~
requester:
type: "object"
properties:
first_name: ~
last_name: ~
section:
type: "object"
properties:
name: ~
translatedNames: ~
messages:
type: "object"
properties:
content: { boost: 0.5 }
filename: ~
persistence:
driver: orm
model: Optro\HelpdeskBundle\Entity\TechnicalAssistance
provider: ~
listener: ~
finder:
service: optro.finder.raw.technical_assistance
必须为每个相关字段声明自定义分析器。据我所知,您不能在全球范围内声明它
types:
technical_assistance:
properties:
subject:
boost: 2
index_analyzer: my_nGram_index_analyzer
search_analyzer: my_nGram_search_analyzer
description:
index_analyzer: my_nGram_index_analyzer
search_analyzer: my_nGram_search_analyzer
...
我将很快进行测试,并转发结果映射仍然是无法识别的选项您必须使用属性而不是映射