rafaelcalleja / ElasticSearchPHPCRProviderBundle

2 stars 0 forks source link

Question: What’s the status? #1

Open hacfi opened 11 years ago

hacfi commented 11 years ago

Hi there,

I just wanted to check if this bundle is already usable? If there are issues left to do I’m willing to help out as I would be really interested in a solution. Right now I save my data with phpcr and sync it with Elasticsearch..would make sense to directly store it in ES!

dnoise commented 11 years ago

Currently, we are using this bundle in a real project with status success. But actually , we dont have updated the bundle in a while The bundle have a strange behavior with configuration files. You must have 2 config files for elasticsearch with mapping info.

Example : First, the FOQ bundle config file

foq_elastica: clients: default: { host: localhost, port: 9200 } indexes: website: finder: ~ client: default types: cursos: mappings: title: { boost: 4 } imagepath: ~ date: ~ persistence: driver: orm model: CMF\CodespaWebBundle\Document\CourseBlock provider: ~

The secon config file of this bundle. It overwrite first config file options

rc_elastic_search_phpcr_provider: default_manager: indexes: website: types: cursos: mappings: title: { boost: 4, multilanguage: true, languages: %locales% } persistence: driver: phpcr listener: ~ model_to_elastica_transformer: service: phpcr_elastica.transformer.modeltoelastica

you notice the driver parameter, overwrite first initial config "orm" with new value 'phpcr'.

this bundle had few other options for mapping multilang and locales options. But isnt 100% adaptable to other proyect. We dont have unit test or documentation so you must review the code

hacfi commented 11 years ago

@dnoise I really appreciate your reply!

I'm working on a new ecommerce platform and have documents attached to ORM entities (netvliesDoctrineBridgeBundle). Right now I just use getPropertiesValues on the Jackalope node to create the ElasticaDocument. Your bundle is much more advanced. I'll give it a try the next few days. If I find a useful addition, I'll sent a PR.

Thanks again hacfi