Commit graph

81 commits

Author SHA1 Message Date
nurikabe f258c9ddc0 Exploratory development for https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/410 2013-12-01 21:17:55 +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 2862259d8e Allow empty or null or no mappings: key under type configuration
refs #300. This commit allow to define types without having to
set any mapping as Elasticsearch build his own.

The minimal config become:

    indexes:
        toto:
            client: default
            types:
                Article:
                    mappings: ~
                    ...
2013-11-29 14:59:56 +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 9b6b0b0148 Add query_builder_method option to the transformers 2013-11-11 13:14:02 +11: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
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 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
Lea Haensenberger 37cfdb0df7 refactoring some code 2013-07-18 10:56:25 +02:00
Lea Haensenberger 300d189a9d renaming services to avoid potential conflicts 2013-07-18 10:51:51 +02:00
Lea Haensenberger 5b6a1f7bd6 Adding new persister and new transformer to make use of the serializer support of elastica when persisting doctrine objects 2013-07-17 08:58:15 +02:00
Antonio J. García Lagar a386ffefe3 Fix parent mapping 2013-06-17 21:19:11 +02: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
Tim Nagel 00b67fd8a4 Ignore missing index hits 2013-05-15 09:59:43 -05: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 aafb6e53fb made the bundle compatible with Elastica 0.20.x 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 a139d18b22 Adding default callback for serialization if serialization is turned on 2013-04-26 14:09:42 +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 440c36f537 Merge remote-tracking branch 'cevou/master' into pr/245
Conflicts:
	Command/PopulateCommand.php
	Command/SearchCommand.php
	DependencyInjection/Configuration.php
	Doctrine/AbstractElasticaToModelTransformer.php
	Doctrine/AbstractListener.php
	Doctrine/MongoDB/ElasticaToModelTransformer.php
	Doctrine/ORM/ElasticaToModelTransformer.php
	Doctrine/RepositoryManager.php
	Finder/TransformedFinder.php
	Paginator/PaginatorAdapterInterface.php
	Paginator/RawPaginatorAdapter.php
	Persister/ObjectPersister.php
	Propel/ElasticaToModelTransformer.php
	Subscriber/PaginateElasticaQuerySubscriber.php
	Tests/DataCollector/ElasticaDataCollectorTest.php
	Tests/Doctrine/AbstractProviderTest.php
	Tests/Doctrine/RepositoryManagerTest.php
	Tests/Manager/RepositoryManagerTest.php
	Tests/RepositoryTest.php
	Transformer/ElasticaToModelTransformerCollection.php
	composer.json
2013-03-27 14:58:34 -04:00
Jeremy Mikola 744f05814a Merge branch '1.0.x' 2013-03-27 13:58:57 -04:00
Jeremy Mikola 4aa8fefe2d Rename FOQ filenames to FOS 2013-03-27 13:58:32 -04:00
Renamed from DependencyInjection/FOQElasticaExtension.php (Browse further)