"_index": "crm",
"_type": "employee",
"_id": "1",
"_score": 1,
"_source": {
"type": null,
"account": {
"firstname": null,
"accountAddress": {
"street": null,
}
}
I'm currently working on a project using Zend Framework2, Doctrine2 and Elasticsearch, Above is a small piece of a document I'm using.
With Doctrine, I'm fetching the entity change set for processing to elasticsearch but I'm not sure if this is the best way to do it.
Is it better to create more document types ( employee, account, accountaddress) or should I live it the way it is now?
In bigger search forms, I need all the data in the document.
// Erik