Commit graph

608 commits

Author SHA1 Message Date
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
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
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
Jeremy Mikola
00f37835fc Rewrite filtered query example in README
Cleaning up the description paragraph and removing extra fields and pagination from the example, since we already have pagination examples elsewhere in the README.
2013-07-16 13:35:27 -04:00
RobertPlant
cce1ffb06c Add filtered query example to README.md 2013-07-16 13:35:27 -04:00
Jeremy Mikola
9e2e8ab1c9 Fix missing getter for private field test for PropertyAccess 2.3+
See: df67239b02
2013-07-12 17:32:33 -04:00
Jeremy Mikola
1af85115df Merge pull request #323 from ajgarlag/orm-provider-order-by
An orderBy DQL  part is required to avoid feching the same row twice
2013-07-08 09:08:11 -07:00
Jeremy Mikola
deb29233ba Merge pull request #330 from tgabi333/patch-1
Remove unused parameter from ModelToElasticaAutoTransformer.php
2013-07-04 13:11:03 -07:00
Gábor Tóth
9beb277745 Remove unused parameter from ModelToElasticaAutoTransformer.php 2013-07-04 18:47:58 +02:00
Antonio J. García Lagar
170864a30d Removes sort call 2013-07-04 08:07:00 +02:00
Jeremy Mikola
5bee33eec9 Merge pull request #321 from ajgarlag/fix-output-color
Fix output colors for single type commands
2013-07-02 13:48:40 -07:00
Lukas Kahwe Smith
8912e52980 Merge pull request #326 from Tobion/patch-1
Allow elastica 0.90. Elasticsearch made the jump from 0.20 to 0.90
2013-06-24 08:52:03 -07:00
Tobias Schultze
8b785c57c3 Allow elastica 0.90. Elasticsearch made the jump from 0.20 to 0.90 2013-06-24 18:44:46 +03:00
Antonio J. García Lagar
7f3cfa49fb Make the property param optional 2013-06-19 13:57:15 +02:00
Antonio J. García Lagar
b11b4299ef An orderBy DQL part is required to avoid feching the same row twice 2013-06-19 12:36:59 +02:00
Antonio J. García Lagar
0bf6e0b09a Fix output colors 2013-06-18 09:52:44 +02:00
Antonio J. García Lagar
a386ffefe3 Fix parent mapping 2013-06-17 21:19:11 +02:00
Lukas Kahwe Smith
9d5a0c2ed9 Merge pull request #318 from RobertPlant/patch-1
Update README.md
2013-06-13 03:15:46 -07:00
RobertPlant
fd5ef8005e Update README.md 2013-06-13 11:28:49 +02:00
Jeremy Mikola
7824678e70 Merge pull request #316 2013-06-12 10:48:29 -04:00
RobertPlant
c4cc199fbe Document object mapping implications for Doctrine ORM 2013-06-12 10:47:59 -04:00
Jeremy Mikola
a9c44b491f Merge pull request #292 2013-06-10 10:37:11 -04:00
Jeremy Mikola
b9da709f22 Add documentation for client tagging 2013-06-10 10:37:02 -04:00
Patrick McAndrew
16ecd7cca3 Tag client with fos_elastica.client 2013-06-10 10:30:31 -04:00
Jeremy Mikola
5a64420779 Merge branch '2.1.x'
Conflicts:
	composer.json
2013-06-06 11:21:15 -04:00
Jeremy Mikola
2dfbfffbd0 Update 2.1.x changelog v2.1.2 2013-06-06 11:19:59 -04:00
Jeremy Mikola
692d224b08 Merge branch '2.0.x' into 2.1.x
Conflicts:
	composer.json
2013-06-06 11:18:47 -04:00
Jeremy Mikola
cd48a36687 Update 2.0.x changelog v2.0.2 2013-06-06 11:13:12 -04:00
Jeremy Mikola
00e9a49460 Allow Symfony dependencies until 3.0 2013-06-06 11:02:55 -04:00
Richard Fullmer
1fc94b2213 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-06-04 11:45:45 -07:00
Jeremy Mikola
94ab3b1d3c Add PSR Log dependency (see: #304) 2013-05-31 13:16:49 -04:00