Commit graph

852 commits

Author SHA1 Message Date
Damien Alexandre d546b4d3f3 Merge remote-tracking branch 'origin/serializer-transformer' into serializer-integration
Conflicts:
	DependencyInjection/FOSElasticaExtension.php
	Resources/config/config.xml
2013-11-29 10:07:13 +01:00
Luis Cordova cacb40286c clean ups 2013-11-20 08:11:15 -05:00
Luis Cordova c82006e8ac fix typos 2013-11-20 07:48:00 -05:00
Tim Nagel 40d3df9f92 Merge branch '2.1.x'
Conflicts:
	Finder/TransformedFinder.php
2013-11-19 08:29:02 +11:00
Tim Nagel 4fb0545a78 Merge branch '2.0.x' into 2.1.x 2013-11-19 08:27:41 +11:00
Tim Nagel a3077e1b53 Merge pull request #402 from XWB/mlt-fix
TransformedFinder::moreLikeThis: use \Elastica_Document instead of \Document
2013-11-16 23:44:07 -08:00
Karel Souffriau 97aadf4897 TransformedFinder::moreLikeThis: use \Elastica_Document instead of \Document 2013-11-15 17:51:26 +01:00
Tim Nagel 3c26f157aa Merge branch '2.1.x'
Conflicts:
	Tests/ResetterTest.php
2013-11-11 13:30:29 +11:00
Matyas Somfai 3f784b0a5b added new options to fos:elastica:populate command and options array parameter to ProviderInterface
removed assume-yes option as the no-interaction option has the same purpose
2013-11-11 13:23:28 +11:00
Tim Nagel 52d5d0d55f Remove incorrect copyright header 2013-11-11 13:21:36 +11:00
Tim Nagel 7464625566 Merge pull request #399 from merk/query-builder-transformers
Add query_builder_method option to the transformers
2013-11-10 18:19:22 -08:00
Tim Nagel 9b6b0b0148 Add query_builder_method option to the transformers 2013-11-11 13:14:02 +11:00
Tim Nagel 08697a4d84 Merge pull request #397 from igorRovenki/master
Update README.md
2013-11-06 13:03:10 -08:00
igorRovenki be4c99a0d3 Update README.md
Should be "listener: ~" on the line 595, otherwise listener does not working
2013-11-06 11:01:53 +02:00
Tim Nagel d5c606c64a Merge pull request #388 from XWB/dynamic_template_support
Add support for dynamic templates
2013-11-04 13:49:48 -08:00
Tim Nagel 8a14fbd73b Merge pull request #394 from pierredup/master
Add Symfony ExpressionLanguage support for indexable callback
2013-11-04 01:59:40 -08:00
Pierre du Plessis f972b4af59 Fixed CS 2013-11-04 08:50:41 +02:00
Pierre du Plessis 97c98a0243 Add Symfony ExpressionLanguage support for indexable callback 2013-11-04 00:09:21 +02:00
Tim Nagel 28641427d5 Merge tag 'v2.1.3-PL1' 2013-11-01 09:17:17 +11:00
Tim Nagel 7f8a8e95e6 Merge tag 'v2.0.3-PL1' into 2.1.x 2013-11-01 09:16:27 +11:00
Tim Nagel 21ce3cf6ff Fix definition decorators (closes #393) 2013-11-01 09:15:38 +11:00
Jeremy Mikola 467ccbf753 Tag client services in DI extension class
These tags were originally introduced in 16ecd7cca3. #339 removed the fos_elastica.client definition from config.xml, so this tag needs to be added via the DI extension class now.
2013-10-30 17:15:09 -04:00
Jeremy Mikola 68092eb4db Merge branch '2.1.x'
Conflicts:
	Resources/config/config.xml
2013-10-30 17:14:20 -04:00
Jeremy Mikola 11d0dd8f91 Merge branch '2.0.x' into 2.1.x 2013-10-30 17:10:04 -04:00
Jeremy Mikola 6e0f144ec2 Merge pull request #339 from FriendsOfSymfony/2.0.x-definition-decorators
2.0.x definition decorators
2013-10-30 14:09:43 -07:00
Jeremy Mikola 74d993b642 Do not clobber existing client definitions (closes #336 and #324)
While we could have used an abstract definition, its ID would likely conflict with the alias we set for the default client. Remove the abstract definition altogether and simply construct new definitions for each client. This resolves the previous issue where multiple clients would overwrite the constructor arguments of the previous definition.
2013-10-30 15:15:26 -04:00
Jeremy Mikola 604193396f Remove "prototype" from abstract definition IDs; note possible conflicts
Due to the naming of transformer, listener, and finder services, it's possible for index/type services to clobber the ID of another concrete or abstract service. This cannot be helped without breaking BC, but we should note it within the extension class.
2013-10-30 15:15:25 -04:00
Karel Souffriau c68bb411ac Add support for dynamic templates 2013-10-30 13:39:43 +01:00
Tim Nagel ca57b0d72e Merge pull request #379 from smatyas/populate-command-provider-options
New options to fos:elastica:populate command: offset, sleep, batch-size
2013-10-29 17:10:46 -07:00
Matyas Somfai 43e026500c added new options to fos:elastica:populate command and options array parameter to ProviderInterface
removed assume-yes option as the no-interaction option has the same purpose
2013-10-30 00:02:34 +01:00
Tim Nagel 85c4dc92f9 Merge tag 'v2.1.3'
Conflicts:
	DependencyInjection/Configuration.php
	README.md
2013-10-30 09:06:48 +11:00
Tim Nagel 8f49b246bc Merge tag 'v2.0.3' into 2.1.x 2013-10-30 09:01:05 +11:00
Tim Nagel f97dc21030 Merge pull request #355 from richardmiller/add-mlt
Add moreLikeThis query to finder
2013-10-29 14:55:00 -07:00
Tim Nagel cfaa85f1c5 Merge pull request #389 from XWB/add_format_field
Add date format field
2013-10-29 14:54:17 -07:00
Karel Souffriau 9d1201099d Add date format field 2013-10-29 12:20:32 +01:00
Tim Nagel c6b01a2c50 Merge pull request #382 from thierrymarianne/master
Fix type hinting in "Manual provider" example
2013-10-17 15:05:42 -07:00
Thierry Marianne 85a10613ba Fix type hinting in "Manual provider" example 2013-10-17 22:40:28 +02:00
Lukas Kahwe Smith 2cbf5f797b Merge pull request #367 from peterkokot/patch-2
LICENSE file removed in favor of Resources/meta/LICENSE file
2013-10-13 06:15:13 -07:00
Tim Nagel 7b1fe89627 Merge pull request #378 from dbu/patch-1
add a note how to use the parent mapping
2013-10-08 16:09:20 -07:00
David Buchmann ac56775791 add a note how to use the parent mapping 2013-09-26 10:02:48 +02:00
Peter Kokot 2b942a6edf LICENSE file removed in favor of Resources/meta/LICENSE file 2013-09-16 19:47:05 +02:00
Lukas Kahwe Smith 9fca3516b2 Merge pull request #365 from peterkokot/patch-1
Update LICENSE
2013-09-15 02:24:59 -07:00
Peter Kokot 6551028753 Update LICENSE
Updated license year range
2013-09-15 09:17:13 +02:00
leahaense 23382c895e Merge pull request #322 from ajgarlag/parentmapping
Fix _parent mapping.
2013-09-10 23:53:15 -07:00
Jeremy Mikola 2bfb637a00 Merge pull request #358 2013-08-19 12:02:28 -04:00
Robert Plant 41e132140e Added ability to access facets with paginated results 2013-08-19 12:01:32 -04:00
Jeremy Mikola b40149cbdc Code and documentation formatting in Propel transformer class 2013-08-19 12:00:56 -04:00
cedric lombardot 3c01ebb775 Fix ElasticaToModelTransformer the transform closure use Result instead of Document 2013-08-19 12:00:56 -04:00
Richard Fullmer e97b60fc7e Ignore failed deletions in ObjectPersister
This probably isn't the best way to solve my problem,
but the issue is this.

Step 1:  Create a new doctrine entity for which it's `is_indexable_callback`
returns false.  When doctrine flushes this entity to the database,
elastia will not index it with elastic search.  (Correct)

Step 2:  Update your doctrine entity and change some fields so
that `is_indexable_callback` _still_ returns false.  Persist and flush
to the database.

At this point, the postUpdate listener on ElastiaBundle is called
and since the `is_indexable_callback` returns false, it believes
it needs to remove it from the elastic search index and queues it
for deletion.  The deletion of course fails because it was never there
in the first place.

This solution simply ignores failures from deletions in the index.

Perhaps a better solution would be to have a smarter listener
that could determine if the entity was previously present in the
elastic search index or not, but that would require significant
refactoring.

Addresses issues discuseed in #284

Credit to @bbeaulant for simple solution.  Opening a PR to
discuss more generally.
2013-08-19 12:00:56 -04:00
Richard Miller 79501dc319 Add moreLikeThis query to finder 2013-08-12 11:04:54 +01:00