Commit graph

191 commits

Author SHA1 Message Date
Tim Nagel b155f304e4 Move IndexManager's resolution to tagged index services 2014-06-18 16:49:57 +10:00
Tim Nagel 8905b4248c Rename Manager to ConfigManager 2014-06-18 16:47:01 +10:00
Tim Nagel 5cbb8ce1b6 Merge pull request #591 from OskarStark/patch-1
use $this->container instead of $container in usage.md
2014-06-18 09:55:16 +10:00
Tim Nagel b3c0d4fd44 Merge pull request #600 from gido/patch-1
Make the class of `fos_elastica.paginator.subscriber` service configurable
2014-06-18 09:54:13 +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 e225d841ed Wrong service. Whoops. 2014-06-17 10:54:09 +10:00
Tim Nagel b49437529c Fix incorrect provider configuration 2014-06-17 10:41:11 +10:00
Tim Nagel 2e23f4a1bf Added documentation changes for indexable_callback 2014-06-17 10:07:10 +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 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
Gilles Doge fe19df365a Make the class of fos_elastica.paginator.subscriber service configurable 2014-06-10 18:20:02 +02:00
Tim Nagel 1dc6856ef9 Configuration rework 2014-06-02 00:40:03 +10:00
Oskar Stark 6a822504bc use $this->container instead of $container 2014-06-01 15:57:29 +02:00
Tornaldo 2e0aa064a2 Update usage.md 2014-06-01 01:27:20 +02:00
Tim Nagel dad15d0b38 Deprecate top level classes 2014-05-25 20:51:46 +10:00
Delf Tonder f9745c8d21 update setup.md - immediate is an listener option
fixed yml config example (having immediate as an persistence option will result in parsing error)
2014-05-24 12:49:12 +02:00
Tim Nagel f8a445b46c Fix disabling of logger in DoctrineProvider 2014-05-23 23:11:45 +10:00
Tim Nagel 3addfffc91 Added logging of server errors to example 2014-05-23 23:00:34 +10:00
Tim Nagel 18143449cc Merge branch 'patch-2' of https://github.com/stloyd/FOSElasticaBundle into client-overwrite 2014-05-23 22:52:58 +10:00
Tim Nagel 2029aba76a Ability for FOSElasticaBundle to disable persistence backend logging for population
Update documentation and changelog
2014-05-23 22:46:14 +10:00
Ahmed Mohamed c9fd1cc5d9 Revert declaring PaginateElasticaQuerySubscriber as a paremeter, so not to break Knp compiler pass 2014-04-20 06:11:20 +02:00
Tim Nagel 35700cdd78 Merge pull request #551 from piotrantosik/patch-1
Fix immediate doc
2014-04-20 10:20:47 +10:00
Ruslan Zavacky 0dcb77d749 More classes exposed as parameters. 2014-04-19 18:31:56 +03:00
Piotr Antosik d33f2e547f Fix immediate doc 2014-04-17 10:14:53 +02:00
Tim Nagel 8387667167 Merge pull request #534 from dylanschoenmakers/patch-1
Added example to usage.md
2014-04-16 18:28:11 +10:00
Dylan Schoenmakers 088452cf88 Added example to usage.md
Added example for using a custom query builder method to usage.md.
2014-04-10 09:25:40 +02:00
Tim Nagel a97ed80aee Merge branch 'nurikabe-master'
Conflicts:
	Resources/doc/types.md
2014-04-10 13:06:22 +10:00
Hugo Henrique 998c69bfc3 Update usage.md
This link to documentation custom repositories is broken
2014-04-06 15:17:02 -03:00
Evan Owens 53332eb057 Allow for catching/logging persistance errors per listener 2014-04-04 18:32:48 -04:00
Evan Owens 377b2843ba Fix documentation about immediate
Unless I misimplemented this, "immediate" means persist to ElasticSearch "immediately"; before flushing.  Default behavior is false; persist to ElasticSearch postFlush.
2014-04-05 07:12:16 +10:00
Piotr Antosik 1bc148569b Added knp paginator sort functionality to PaginateElasticaQuerySubscriber 2014-04-03 10:44:18 +02:00
Patrick Zahnd 13c2d10e39 Added knp paginator sort functionality to PaginateElasticaQuerySubscriber 2014-04-03 00:02:43 +02:00
Joseph Bielawski f15ca02859 Fix documentation for client overwriting. 2014-03-31 11:59:37 +02:00
Joakim Friberg a81a630520 Corrected bundle class name in install instructions 2014-03-27 16:33:20 +01:00
Tim Nagel 38b4074745 Update logger documentation based on configuration change 2014-03-26 12:40:27 +11:00
Tim Nagel eb7758605e Documentation updates 2014-03-26 10:07:50 +11:00
Tim Nagel befb0907cc Merge branch 'master' into documentation
Conflicts:
	DependencyInjection/Configuration.php
	README.md
2014-03-25 16:04:32 +11:00
Tim Nagel 5292a2adad Merge pull request #463 from FriendsOfSymfony/add-hotswapping-aliased-indexes-on-populate
Add support for using aliases to allow hot swapping of indexes.
2014-03-17 09:20:12 +11:00
Tim Nagel 49521e9fc4 Merge branch 'master' into add-hotswapping-aliased-indexes-on-populate
Conflicts:
	Resetter.php
2014-03-17 09:18:57 +11: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
Richard Miller 3b1a756e6f Add support for using aliases to allow hot swapping of indexes when populating 2014-02-06 21:11:12 +00:00
Hung Tran 5be3a8c22e added query string to collector and updated tests 2014-02-05 11:58:13 -06:00
nurikabe 93c6085fa5 Merge remote-tracking branch 'upstream/master' 2014-02-01 02:15:52 +00:00
Piotr Antosik 076d51ac40 Services classes as parameters 2014-01-29 17:50:42 +01:00
nurikabe 4a4716a55b Merge remote-tracking branch 'upstream/master' 2014-01-11 16:38:29 +00:00
Tim Nagel 5f8b8003d1 Refactor documentation 2013-12-17 21:17:28 +11: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
Damien Alexandre c97a4abceb Add display cURL on the web debug queries shower 2013-12-09 10:09:36 +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 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
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
Peter Kokot 6551028753 Update LICENSE
Updated license year range
2013-09-15 09:17:13 +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
Patrick McAndrew 16ecd7cca3 Tag client with fos_elastica.client 2013-06-10 10:30:31 -04:00
Lukas Kahwe Smith e898deb6df cleanups 2013-04-26 14:12:28 +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 a139d18b22 Adding default callback for serialization if serialization is turned on 2013-04-26 14:09:42 +02:00
Jeremy Mikola c24a647a43 Merge pull request #267 from XWB/collector-update
Collector: print query data as json instead of yaml
2013-04-10 12:39:04 -07:00
Karel Souffriau 4f5be038ef Collector: print query data as json instead of yaml 2013-04-05 13:17:00 +02:00
Karel Souffriau 83e27ede93 Require PropertyAccess component 2013-04-04 21:51:03 +02:00
Jeremy Mikola 2e7d2f2452 Support Symfony 2.2 PropertyAccess with BC for 2.1 (closes #218)
By abstracting the property access, we can easily support Symfony 2.1's Form component and 2.2's PropertyAccess component.

The PropertyAccessor service will be injected into transformers if it is available. Tests were modified to do the same, and expect the appropriate exception depending on which implementation is available.
2013-03-27 17:26:47 -04:00
Jeremy Mikola 3fb9aaa56a Rename FOQ namespaces and services to FOS 2013-03-27 13:44:06 -04:00
tyx 9c60a5ccac Add totalquery time in debugbar (like Doctrine does) 2013-02-21 10:37:04 +01:00
Richard Miller 8fde6b235c Merge branch '2.0'
Conflicts:
	Transformer/ElasticaToModelTransformerCollection.php
2012-11-28 21:15:13 +00:00
Richard Miller 5f1e1326d5 Fixing identifier field not being set in TransformerCollection 2012-09-24 23:15:05 +01:00
Chris Tickner fcb9e8f2f5 Updated the DoctrineMongoDBBundle service IDs
The service IDs for the DoctrineMongoDBBundle have changed for version 2.1.  This is an update to reflect that change.

https://github.com/doctrine/DoctrineMongoDBBundle/pull/134
2012-08-15 08:45:43 -03:00
Richard Miller 67a11a59ce Merge branch '2.0'
Conflicts:
	Finder/FinderInterface.php
	Repository.php
2012-08-07 19:42:38 +01:00
Richard Miller 16f439cfaf Stopped logger collecting data when not in debug mode 2012-08-07 19:39:14 +01:00
Francisco Facioni 0d9e0f1172 Added knp paginator support
Bug fix: no
Feature addition: yes
Backwards compatibility break: no

Encapsulated Pagerfanta dependency for pagination and added support for knp pagination component
2012-05-24 11:35:19 -03:00
William DURAND 303e48c8c6 Updated collector view to fit the new WDT 2012-05-21 10:09:58 +02:00
William DURAND da194b581c Made persister services public to use them 2012-05-05 16:59:52 +01:00
Richard Miller a741ea804b Merge pull request #106 from willdurand/public-persister-services
Made persister services public to use them
2012-05-05 08:54:53 -07:00
William DURAND effd3583a4 Made persister services public to use them 2012-05-04 16:54:02 +02:00
r1pp3rj4ck 0f46f4b96d [Listener] Allow conditional indexing based on callback method
Added optional is_indexable_callback config param to persistence. If this is a method on the entity, the listener will only process it if the method returns true. Also updated documentation.
2012-04-10 14:36:25 -04:00
Jeremy Mikola 4a80e27283 Enable PopulateCommand to target indexes and types
This makes the Populator service obsolete.
2012-03-12 12:07:51 -04:00
Jeremy Mikola 2046748516 [Provider] Lazy-loaded provider services must have public definitions
If provider definitions are not public, they will be removed by RemoveUnusedDefinitionsPass when compiling the container.
2012-03-12 12:07:51 -04:00
Jeremy Mikola e09225eb09 [Provider] Change provider construction (possible BC break)
* Created AbstractProvider class (for all DB services), which handles the default batch_size option.
 * The logger Closure is now optional for populate().
 * Removed unused Elastica_Type argument from Provider constructors.
 * Added unit tests for Doctrine's AbstractProvider class.
 * The extra argument (ManagerRegistry) for Doctrine providers is now an appended constructor argument, so the extension no longer needs to use different replacement indexes for Propel/Doctrine providers.
2012-03-12 12:07:51 -04:00
Jeremy Mikola b360a36737 [Provider] Create ProviderRegistry service (BC break)
This introduces a registry service for persistence providers.

Previously, tagging one or more provider services would cause AddProviderPass to clobber the default providers created by the bundle's extension class. Now, the extension class tags its created providers and allows them to be registered via RegisterProvidersPass just like custom providers.

BC break: Custom providers tagged "foq_elastica.provider" must now specify a "type" attribute on their tag. An "index" attribute is optional (the default ES index will be used by default).
2012-03-12 12:07:51 -04:00
Jeremy Mikola 43eda480c5 Rename "reseter" to "Resetter" (BC break) 2012-03-12 12:07:51 -04:00
Richard Miller d67cd8f9ba Merge remote-tracking branch 'origin/2.0' 2012-02-03 12:40:42 +00:00
Richard Miller 65be0a415e Fixing issue with removing mapped Doctrine entities/documents 2012-01-25 19:51:10 +00:00
Richard Miller dce701b259 Merge branch '2.0'
Conflicts:
	DependencyInjection/FOQElasticaExtension.php
	Manager/RepositoryManager.php
	Resources/config/mongodb.xml
	Resources/config/orm.xml
	Resources/config/propel.xml
2012-01-25 12:09:06 +00:00
Richard Miller ac3edc23a4 Changed to separate repository manager for each driver 2012-01-25 11:36:50 +00:00
Richard Miller e678ce8cc6 Added configuring repository by annotation
Conflicts:

	Manager/RepositoryManager.php
	Resources/config/mongodb.xml
	Resources/config/orm.xml
	Tests/Manager/RepositoryManagerTest.php
2012-01-25 11:20:47 +00:00
Richard Miller b4ebbc0a55 Merge branch '2.0' 2012-01-12 19:59:08 +00:00
Richard Miller fe3d4e06b7 Removed exception catching in persister 2012-01-12 19:54:35 +00:00
Richard Miller 851c461fa8 Removed exception catching in Doctrine listeners 2012-01-12 19:38:56 +00:00