Answer the question
In order to leave comments, you need to log in
How to solve the error when importing data into Elastic: Root mapping definition has unsupported parameters?
Using bundle: friendsofsymfony/elastica-bundle
On startup: bin/console fos:elastica:populate
Error:
Root mapping definition has unsupported parameters: [hero : {dynamic_date_formats=[], _meta={model=AppBundle\Entit
y\Hero}, properties={name={type=text}}}] [reason: Failed to parse mapping [ _doc]: Root mapping definition has unsupported
parameters: [hero : {dynamic_date_formats=[], _meta={model=AppBundle\Entity\Hero}, pИroperties={name={type=t
ext}}}]]
fos_elastica:
clients:
default: { host: 190.61.6.3, port: 9200, username: 'elastic', password: '123456'}
indexes:
app:
types:
hero: # the name of our type
properties:
name:
#analyzer: keyword_analyzer
#search_analyzer: keyword_analyzer
type: text
persistence:
driver: orm
model: AppBundle\Entity\Hero
provider: ~
finder: ~
repository: AppBundle\Repository\HeroRepository
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question