Commit graph

236 commits

Author SHA1 Message Date
esodin 659468ae3a Issue: Parent is missing in the fields list that causes RoutingMissingException on flushing - test 2014-07-24 17:36:45 +03:00
esodin 001b38cf59 Issue: Parent is missing in the fields list that causes RoutingMissingException on flushing - test 2014-07-24 17:07:22 +03:00
esodin 1ef55b1239 Issue: Parent is missing in the fields list that causes RoutingMissingException on flushing - test 2014-07-24 17:03:26 +03:00
Tim Nagel e5410a5b65 Fix indexable callbacks being overwritten by another index
closes #663
2014-07-23 21:38:46 +10:00
Tim Nagel fad481d822 Fix completion type 2014-07-23 20:00:14 +10:00
Tim Nagel 90a554f627 Merge branch 'pr/622' 2014-07-04 12:49:13 +10:00
tamirvs d57d430ab3 Ignore iterator keys when converting to array 2014-07-04 12:48:27 +10:00
Tim Nagel be4af0d1af Merge pull request #644 from merk/elastica-connections
Rename servers to connections
2014-07-04 11:28:44 +10:00
Tim Nagel 21e5d906a7 Simplify *One methods in the persister 2014-07-03 23:37:44 +10:00
Tim Nagel 55dcf6859a Rename servers to connections 2014-07-03 21:58:54 +10:00
Tim Nagel c200e8fdfd Add tests for attachment type 2014-07-03 20:21:01 +10:00
Tim Nagel 5d65676659 Add tests and normalisation to support old dynamic_templates format 2014-07-01 17:59:22 +10:00
Tim Nagel 474cbfa979 Added test coverage for ES store 2014-06-26 19:51:16 +10:00
Tim Nagel 77f2b99a3e Fix Indexable tests 2014-06-26 18:01:34 +10:00
Tim Nagel 96dc613c71 Fix array format for indexable_callback 2014-06-26 17:46:29 +10:00
Tim Nagel a879d3c1c9 Fix ClassCastException when no settings are present 2014-06-26 17:31:20 +10:00
Tim Nagel ae03b3f3cf Fix propel service definition 2014-06-25 13:18:02 +10:00
Tim Nagel f6264f4149 Fix AbstractProvider tests 2014-06-24 10:30:31 +10:00
Tim Nagel 2a20bb623c Merge branch 'typed-config'
Conflicts:
	composer.json
2014-06-24 09:09:29 +10:00
Tim Nagel 9a62187329 Fix undefined index_name notice 2014-06-23 23:50:52 +10:00
Tim Nagel ca6991d494 Fix serializer 2014-06-23 23:05:57 +10:00
Tim Nagel 4e990e0cee Fixed mapping issues 2014-06-19 00:14:41 +10:00
Tim Nagel 3ae382c933 Add tests to make sure KnpPaginator plays nice 2014-06-18 20:02:05 +10:00
Tim Nagel 8905b4248c Rename Manager to ConfigManager 2014-06-18 16:47:01 +10:00
Tim Nagel ec5c05e8be dev 2014-06-17 23:22:58 +10:00
Tim Nagel e78950ddb7 Merge branch 'master' into typed-config
Conflicts:
	CHANGELOG-3.0.md
	Client.php
	DependencyInjection/Configuration.php
	DependencyInjection/FOSElasticaExtension.php
	DynamicIndex.php
	Resources/config/config.xml
	Resources/config/mongodb.xml
	Resources/config/orm.xml
	Tests/DependencyInjection/ConfigurationTest.php
	composer.json
2014-06-17 22:42:15 +10:00
Tim Nagel aafb8c8e89 Fix indexable callbacks with alias based indexes 2014-06-17 12:03:38 +10:00
Tim Nagel 94568d9554 Merge pull request #608 from merk/populate-indexable
Indexable callback refactoring, implemented callback in Provider
2014-06-17 10:11:46 +10:00
Tim Nagel 02d864f7e2 Merge pull request #593 from merk/gh-592
Fix nested property configuration
2014-06-17 09:48:22 +10:00
Tim Nagel 0383811834 Fix test, add test for failing mappings 2014-06-16 23:28:53 +10:00
Tim Nagel ada3942576 Config Source providers 2014-06-16 23:23:49 +10:00
Tim Nagel 813a4a5d26 Fix previous commits 2014-06-16 22:43:16 +10:00
Tim Nagel e54cc3c243 Implement callback checking in the provider 2014-06-16 16:17:04 +10:00
Tim Nagel 66d2410999 Move Indexable callback calculations to a new service 2014-06-16 15:57:42 +10:00
Tim Nagel f5932a8e47 Merge remote-tracking branch 'origin/refactor' into typed-config
Conflicts:
	Resetter.php
2014-06-14 11:11:31 +10:00
Tim Nagel 5009673b6a Functional Tests v1 2014-06-08 22:35:38 +10:00
Tim Nagel 8540f13bbf Fix nested property configuration
Fixes #592
2014-06-02 21:35:51 +10:00
Tim Nagel 1dc6856ef9 Configuration rework 2014-06-02 00:40:03 +10:00
Tim Nagel dad15d0b38 Deprecate top level classes 2014-05-25 20:51:46 +10:00
Tim Nagel 8e88505a3f Merge branch 'rename-mappings' into configuration-tidy 2014-05-25 20:13:21 +10:00
Tim Nagel a79fa0242e Simplified Configuration.php 2014-05-25 20:08:01 +10:00
Tim Nagel c38dc107e7 Rename mappings to properties maintaining BC
Fixes #407
2014-05-25 17:56:57 +10:00
Tobias Sjösten f97e66712a Don't default url 2014-05-25 00:31:40 +01:00
Tim Nagel 458b53240b Merge branch 'configuration-fixes' 2014-05-23 23:21:29 +10:00
Tim Nagel f20392d78b Fix test failures for DoctrineProvider 2014-05-23 23:19:55 +10:00
Tim Nagel 352e3b68ac Add configuration tests 2014-05-23 22:49:03 +10:00
Milan Magudia e1bbb87cfe Fix for Issue #543 Client has a dependency on a non-existent service "%kernel.debug%" 2014-05-21 10:24:44 +01:00
Evan Villemez c93bbb9081 stop config from adding empty arrays into type mappings 2014-05-01 11:05:16 -04:00
Ahmed Mohamed 806452813a Add test multiple objects mapping of at least one auto-mapped and at least one manually mapped 2014-04-20 03:41:41 +02:00
Tim Nagel ec7f04a261 Merge pull request #515 from nurikabe/master
Clone entities on delete to preserve ids
2014-04-01 20:22:22 +11:00
Joris van de Sande 588c4e2d02 Unset nested "fields" for deeper nested configs too 2014-03-31 12:52:29 +02:00
nurikabe 0de48d2190 Use identifiers for bulk delete rather than cloning objects 2014-03-29 18:36:06 -04:00
nurikabe 720917f609 Clone entities on delete to preserve ids 2014-03-24 11:16:31 -04:00
Joris van de Sande 455ff9e0f7 Unset fields if no nested fields are defined 2014-03-24 15:06:24 +01:00
Tim Nagel 857c1c8e48 Merge pull request #415 from nurikabe/master
Refactoring to update ElasticSearch index in postFush
2014-03-17 09:11:43 +11:00
Lea Haensenberger 726892c586 Ignore TypeMissingException when resetting a single type. This allows to create new types without having to recreate the whole index. 2014-03-13 10:43:35 +01:00
tgallice 418b9d72ce Rework configuration validation to fix #461 2014-03-04 17:58:10 +01:00
Karel Souffriau 41bf07ec59 Fixed issues in #426 2014-02-19 12:19:34 +01:00
Tim Nagel d03d494d30 Merge remote-tracking branch 'tgabi/stop-on-error' 2014-02-19 13:50:33 +11:00
Hung Tran 5be3a8c22e added query string to collector and updated tests 2014-02-05 11:58:13 -06:00
nurikabe 559d7c13f2 Update tests 2014-02-01 03:37:47 +00:00
Tóth Gábor bbacad4bab no-stop-on-error option added to populate command 2014-01-21 18:38:51 +01:00
nurikabe 4a4716a55b Merge remote-tracking branch 'upstream/master' 2014-01-11 16:38:29 +00:00
nurikabe 7481376835 Use bulk insert. Still working on bulk update/delete which is not yet suppored in Elastica. 2014-01-11 16:28:15 +00:00
Tim Nagel 21f688e014 Merge pull request #433 from FriendsOfSymfony/fix-reset-command
Fix reset command
2013-12-17 02:34:00 -08:00
Lea Haensenberger e906d780ad Adding tests 2013-12-16 12:06:53 +01:00
Lea Haensenberger 05ee300ddb Fixing reset command to allow resetting of just one type, starting to write test 2013-12-16 11:58:58 +01:00
Craig Marvelley 292af9f039 Better variable names 2013-12-12 22:57:02 +00:00
Craig Marvelley 11a87c5ce3 Add test for ElasticaToModelTransformerCollection::hybridTransform 2013-12-12 20:48:15 +00:00
Craig Marvelley 090f02b05d Improve test coverage 2013-12-12 11:11:34 +00:00
Lea Haensenberger a59385af7b Do not set default value to *, might conflict when using e.g. path_match and match_pattern regex together 2013-12-10 15:37:41 +01:00
Lea Haensenberger 0aa98d2295 Fixing copy&paste error 2013-12-10 15:21:46 +01:00
Lea Haensenberger e55c7e8632 Set match to '*' by default 2013-12-10 15:21:46 +01:00
Lea Haensenberger 09031457cd Allow more matching methods 2013-12-10 15:21:46 +01:00
Lea Haensenberger bad1769c84 Fixing tests 2013-12-10 15:21:46 +01:00
Tim Nagel 8668537740 Merge pull request #400 from cordoval/cleanups
clean ups
2013-12-10 02:15:53 -08:00
Tim Nagel fc64078575 Merge pull request #413 from damienalexandre/serializer-integration
Serializer support in providers and mapping configuration fixes
2013-12-09 12:35:26 -08:00
Damien Alexandre 1ddd7c0e0c Store connection infos for all transports, display infos in debug 2013-12-09 14:46:06 +01:00
Damien Alexandre ca507a5e34 Add full_host in logger for HTTP(s) queries 2013-12-09 10:40:47 +01:00
nurikabe 1d700261ab Refactor to a single Listener class. Update tests. 2013-12-02 12:42:04 +00:00
Damien Alexandre 3027c687e2 Ref #341, fix the insertMany method to use Bulk indexing
To make it works, I inject the serializer defined for the Type
into the fos_elastica.object_serializer_persister service.

This is the SAME service injected in the setSerializer of Type.

We deport the handling of serialization outside Elastica,
this is not so good but we need to build our own Documents to
get the ID's correctly.
2013-11-29 15:35:59 +01:00
Damien Alexandre e180f1fd61 Merge remote-tracking branch 'peerj/ObjectWithoutProperties' into serializer-integration
Conflicts:
	Transformer/ModelToElasticaAutoTransformer.php
2013-11-29 13:51:58 +01:00
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
Tim Nagel 3c26f157aa Merge branch '2.1.x'
Conflicts:
	Tests/ResetterTest.php
2013-11-11 13:30:29 +11:00
Tim Nagel 52d5d0d55f Remove incorrect copyright header 2013-11-11 13:21:36 +11:00
Tim Nagel 9b6b0b0148 Add query_builder_method option to the transformers 2013-11-11 13:14:02 +11:00
Pierre du Plessis 97c98a0243 Add Symfony ExpressionLanguage support for indexable callback 2013-11-04 00:09:21 +02:00
Karel Souffriau c68bb411ac Add support for dynamic templates 2013-10-30 13:39:43 +01:00
Tim Nagel 85c4dc92f9 Merge tag 'v2.1.3'
Conflicts:
	DependencyInjection/Configuration.php
	README.md
2013-10-30 09:06:48 +11:00
Karel Souffriau 9d1201099d Add date format field 2013-10-29 12:20:32 +01:00
Lea Haensenberger 77156b35aa some formatting and cleaning up 2013-07-18 10:54:11 +02: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
Lea Haensenberger d10e8f56c8 Tests for new provider and new transformer 2013-07-17 10:10:07 +02: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
Antonio J. García Lagar 7f3cfa49fb Make the property param optional 2013-06-19 13:57:15 +02:00
Antonio J. García Lagar a386ffefe3 Fix parent mapping 2013-06-17 21:19:11 +02:00
Patrick McAndrew fab42fa0ce Properities should not be required for object as elastica can automap 2013-05-24 12:27:37 +01:00