Closed sydekumf closed 10 years ago
There is yet another issue with allowing ElasticSearch to determine the id which is that this library does not set the ID back onto the object. This could create application issues so we need a more robust solution.
If it's ok i'll close this pull request? There are a number of issues that need to be resolved unless you have some more feedback.
You're right with the multiple entities, I haven't tried that. You can close this issue, I will try some work arounds, maybe I get a solution :-)
...csearch create its own ids
It is possible to omit the id for elasticsearch. It will then create its own id. The elastica client does this if you give it an empty string as id. Unfortunately the doctrine/search lib will not accept an empty string, so I changed line 196 in order allow empty strings.