php - Symfony2 elasticsearch in production returns 500 -
in development works. when switch production , try search 500 error. there no errors written in logs dont understand can wrong?
when going http://localhost:9200/_plugin/head/. see products saved in index app_dev.
however there not index related app. why that? why not creating indexes in prod?
config.yml:
fos_elastica: default_manager: orm clients: default: { host: localhost, port: 9200 } indexes: app: index_name: app_%kernel.environment% types: product: mappings: id: type: integer admintitle: type: string base: type: double created_at: type: date persistence: # driver can orm, mongodb, phpcr or propel # listener , finder not supported # propel , should removed driver: orm model: mp\shopbundle\entity\product provider: ~ listener: immediate: ~ finder: ~ repository: mp\shopbundle\repository\productrepository elastica_to_model_transformer: query_builder_method: findproductsbysearch ignore_missing: true
Comments
Post a Comment