floriansemm / SolrBundle

Solr-Integration into Symfony and Doctrine2
http://floriansemm.github.io/SolrBundle
MIT License
123 stars 72 forks source link

Feature/entity changeset #122

Closed PouleR closed 8 years ago

PouleR commented 8 years ago

Add functionality to check if a document needs to be updated (in Solr) by comparing the entity changeset and the solr fields in the entity. In other words; don't update in Solr when a property is changed that doesn't have a @Solr\Field annotation.

floriansemm commented 8 years ago

I have rework your changeset-stuff. It is now a public method computeChangeSet($doctrineChangeSet, $entity)

PouleR commented 8 years ago

@floriansemm looks good! However where is the method computeChangeSet() called?

floriansemm commented 8 years ago

https://github.com/floriansemm/SolrBundle/blob/master/Doctrine/ORM/Listener/EntityIndexerSubscriber.php#L43

PouleR commented 8 years ago

Got it, must have overlooked it. Great job! We're very happy with this SolrBundle