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
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
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
Jeremy Mikola
00fde6847a
Merge pull request #304 from ceednee/master
...
Fixes Undefined property: FOS\ElasticaBundle\Client::$logger
2013-05-30 13:18:02 -07:00
ceednee
929c1bfc0d
Fixes Undefined property: FOS\ElasticaBundle\Client::
2013-05-30 21:27:31 +02:00
Lukas Kahwe Smith
860a1f8108
Merge pull request #303 from instaclick/logger-patch
...
update to PSR3 LoggerInterface per change in ruflin/elastica
2013-05-30 09:54:10 -07:00
Anthon Pang
55edceadcb
remove redundant property/method
2013-05-30 16:43:10 +00:00
Anthon Pang
f374dbbaa2
update to PSR3 LoggerInterface per change in ruflin/elastica
2013-05-30 16:26:16 +00:00
Patrick McAndrew
fab42fa0ce
Properities should not be required for object as elastica can automap
2013-05-24 12:27:37 +01:00
Lukas Kahwe Smith
43d1531cd4
cs fix
2013-05-23 00:25:38 +03:00
Lukas Kahwe Smith
16edbfa03b
Merge pull request #285 from Appstrakt/master
...
Updated documentation
2013-05-22 12:56:17 -07:00
Lukas Kahwe Smith
b7eff37f63
Merge pull request #290 from hacfi/readme_fix
...
Correct serializer configuration in README
2013-05-22 12:54:32 -07:00
Lukas Kahwe Smith
be065735c1
master is 3.0.x
2013-05-22 21:52:48 +02:00
Lukas Kahwe Smith
79327d281c
Merge pull request #293 from FriendsOfSymfony/add-path-support
...
added path support
2013-05-17 00:09:06 -07:00
Lukas Kahwe Smith
50730cca3d
added path support, see http://www.elasticsearch.org/guide/reference/mapping/id-field/
2013-05-17 00:22:46 +02:00
Jeremy Mikola
814460dbf2
Merge branch '2.1.x'
2013-05-15 10:58:47 -05:00
Jeremy Mikola
41c747907c
Create 2.1.x changelog
2013-05-15 10:55:30 -05:00
Tim Nagel
c05e0caa9c
Added documentation for ignoring missing hits
2013-05-15 09:59:52 -05:00
Tim Nagel
00b67fd8a4
Ignore missing index hits
2013-05-15 09:59:43 -05:00
Philipp Wahala
d6e8134189
Correct serializer configuration in README
2013-05-15 15:56:21 +02:00
Arne Stockmans
23dfd3f595
Renamed is_indexable_callback_class back to is_indexable_callback
2013-05-08 14:29:22 +02:00
Lukas Kahwe Smith
b8a4a47b38
renamed PurgeCommand to ResetCommand
2013-05-08 09:10:40 +02:00
Lukas Kahwe Smith
b5392df9fd
Merge pull request #280 from FriendsOfSymfony/purge_command
...
added purge command
2013-05-07 04:54:08 -07:00
Lukas Kahwe Smith
f48ae85cc8
added missing use statement
2013-05-06 10:32:50 +02:00
Tim Nagel
4ffc499c66
Saner version constraints
2013-05-03 11:20:44 +10:00
Jeremy Mikola
ee6f3cb04d
Expect a more specific PropertyAccess exception
...
RuntimeException is the nearest common ancestor of the PropertyAccessDeniedException (removed in 2.3) and NoSuchPropertyException.
See: symfony/symfony@2a666cb7c3
2013-05-02 11:24:27 -04:00
Jeremy Mikola
64d27c37fa
Merge pull request #282 from tommygnr/symfony2.3
...
Allow symfony >= 2.3
2013-05-02 11:17:50 -04:00
Tom Corrigan
b204f5bf5f
Allow symfony >= 2.3
...
This required a small tweak to the tests as
Symfony\Component\PropertyAccess\Exception\PropertyAccessDeniedException
has been removed in 2.3
2013-05-03 01:01:29 +10:00
Jeremy Mikola
be3c2779ef
Merge pull request #277 from FriendsOfSymfony/namespace_compat
...
Compatibility with Elastica 0.20.x (incl. Serializer support)
2013-04-26 16:12:30 -07:00
Lukas Kahwe Smith
813f57e3d0
added purge command
2013-04-26 19:46:15 +02:00
Lukas Kahwe Smith
e898deb6df
cleanups
2013-04-26 14:12:28 +02:00
Lukas Kahwe Smith
c35cb1b25f
fixed Elastica dependency
2013-04-26 14:10:06 +02:00
Lukas Kahwe Smith
0af8f6ce19
updated for Elastica master changes
2013-04-26 14:10:06 +02:00
Lukas Kahwe Smith
800e38f8aa
tweaked the callback handling
2013-04-26 14:10:06 +02:00
Lukas Kahwe Smith
8a9a9686ba
various tweaks
2013-04-26 14:10:05 +02:00
Lukas Kahwe Smith
965ee39c5a
typo fix
2013-04-26 14:10:05 +02:00
Lukas Kahwe Smith
aafb6e53fb
made the bundle compatible with Elastica 0.20.x
2013-04-26 14:10:05 +02:00
Lukas Kahwe Smith
d8f836d179
CS fixes and minor tweaks in the Callback class
2013-04-26 14:10:05 +02:00
Lea Haensenberger
1abe1f48dd
Having a parameter name defining a class for the serializer callback, because directly putting service id or parameter doesn't work because these values are not available at bundle configuration time
2013-04-26 14:10:05 +02:00
Lea Haensenberger
bcf564d09c
Adapting readme
2013-04-26 14:09:42 +02:00
Lea Haensenberger
a139d18b22
Adding default callback for serialization if serialization is turned on
2013-04-26 14:09:42 +02:00
Lea Haensenberger
c99eee9c4b
Adding some documentation
2013-04-26 14:06:50 +02:00
Lea Haensenberger
73fd4fe6b0
Creating a serializer callable for every type in an index and passing it to elastica
2013-04-26 14:06:49 +02:00
Lea Haensenberger
c5ee26099b
Adding support to pass a serializer to elastica
2013-04-26 14:06:48 +02:00
Jeremy Mikola
a161b0657a
Merge branch '2.0.x'
2013-04-17 11:23:58 -04:00
Thomas Tourlourat
4b4a56db1e
Check for "indexes" key in Configuration::getNestings()
2013-04-17 11:23:30 -04:00