Commit graph

1,089 commits

Author SHA1 Message Date
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 v2.1.3-PL1 2013-11-01 09:16:27 +11:00
Tim Nagel
21ce3cf6ff Fix definition decorators (closes #393) v2.0.3-PL1 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 v2.1.3 2013-10-30 09:01:05 +11:00
Tim Nagel
f97dc21030 Merge pull request #355 from richardmiller/add-mlt v2.0.3
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
Jeremy Mikola
0b3c1ebbc2 Merge pull request #350 2013-08-09 13:57:16 -04:00
Jeremy Mikola
c15caf3096 Code and documentation formatting in Propel transformer class 2013-08-09 13:56:51 -04:00
cedric lombardot
e2b6177a33 Fix ElasticaToModelTransformer the transform closure use Result instead of Document 2013-08-09 13:42:12 -04:00
Jeremy Mikola
b922315172 Merge pull request #312 from opensoft/issue-284
Ignore failed deletions in ObjectPersister
2013-08-07 13:57:23 -07:00
NicolasBadey
617b9d3f4b Recalculate pagination Query size if a limit is already set 2013-07-18 14:06:32 -04:00
Lea Haensenberger
37cfdb0df7 refactoring some code 2013-07-18 10:56:25 +02:00
Lea Haensenberger
77156b35aa some formatting and cleaning up 2013-07-18 10:54:11 +02:00
Lea Haensenberger
300d189a9d renaming services to avoid potential conflicts 2013-07-18 10:51:51 +02:00
Jeremy Mikola
dcd3cbb944 Merge branch '2.1.x'
Conflicts:
	Tests/Transformer/ModelToElasticaAutoTransformerTest.php
2013-07-17 15:57:24 -04:00
Jeremy Mikola
4a889406e9 Merge branch '2.0.x' into 2.1.x
Conflicts:
	Tests/Transformer/ModelToElasticaAutoTransformerTest.php
2013-07-17 15:55:55 -04:00
Jeremy Mikola
ab0c27c481 Fix expected exception class (related to #338)
This corrects a typo in a66a37aebd.
2013-07-17 15:54:06 -04:00
Jeremy Mikola
7ae4be0062 Merge branch '2.0.x' into 2.1.x
Conflicts:
	Tests/Transformer/ModelToElasticaAutoTransformerTest.php
2013-07-17 15:49:09 -04:00
Jeremy Mikola
a66a37aebd Merge pull request #338 from FriendsOfSymfony/2.0.x-property-access
Fix missing getter for private field test for PropertyAccess 2.3+
2013-07-17 12:44:57 -07:00