Commit graph

84 commits

Author SHA1 Message Date
Ad van der Veer d49c530c55 Updated the DoctrineMongoDB event subscriber tag 2012-10-01 15:46:02 -04:00
predakanga 70c629f857 Added configuration options to support index-time document boosting 2012-08-09 13:49:04 +10:00
Richard Miller 123da22ebd Merge remote-tracking branch 'Fran6co/imp-lat_lon'
Conflicts:
	DependencyInjection/Configuration.php
2012-08-02 14:54:49 +01:00
Richard Miller f0c4cb23e3 Merge pull request #142 from korstiaan/include_in_all
Added `include_in_all` as mapping property
2012-08-02 05:56:18 -07:00
Korstiaan de Ridder dbf0e27386 Added include_in_all as mapping property 2012-08-01 13:52:08 +02:00
Francisco Facioni f58cf6e63c adds support for lat_lon flag as specified in http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html 2012-07-25 18:29:35 -03:00
Richard Miller 7a8664727c Merge remote-tracking branch 'origin/attachment_type_transformation'
Conflicts:
	Tests/Transformer/ModelToElasticaAutoTransformerTest.php
	Transformer/ModelToElasticaAutoTransformer.php
2012-07-08 15:38:09 +01:00
Richard Miller 835087eff1 Merge remote-tracking branch 'miguelibero/master' 2012-06-13 17:21:08 +01:00
Miguel Ibero f69e969898 fixed for consistency 2012-05-24 20:13:58 +02:00
Francisco Facioni 5bea4da409 added index_analyzer and search_analyzer for type fields 2012-05-23 14:42:28 -03:00
Miguel Ibero ae80e3e4f3 added index_analyzer and search_analyzer type options 2012-05-17 13:00:53 +02:00
Richard Miller 146cf891cd Added transforming mapped attachments 2012-04-19 21:26:19 +01:00
Jeremy Mikola 38bdc44185 Support service ID's and class names in is_indexable_callback 2012-04-19 12:18:30 -04:00
Jeremy Mikola 3ec4a48484 Allow variable types for is_indexable_callback options
Actual checking (string, array callback or Closure) is done in the Listener class itself.
2012-04-19 11:43:35 -04:00
Jeremy Mikola 5f5ee8a15d Merge branch '2.0' 2012-04-17 12:21:11 -04:00
Jeremy Mikola 86cdaa7c3c [Listener] Support additional indexable callback types
Support service/method tuples as indexable callbacks. Closures are also supported, although they cannot be injected by the service container.

The indexable callback is now injected via a setter and validated when set (instead of during event processing).
2012-04-16 12:30:30 -04: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
nurikabe 87f1141d2e Remove addDefaultsIfNotSet() on prototyped array node. 2012-04-02 14:15:12 -04:00
nurikabe 99c6aa9ac7 Allow "_source" configuration as per https://github.com/Exercise/FOQElasticaBundle/issues/83. 2012-04-02 13:53:51 -04:00
Jeremy Mikola 24ca952d46 Update service tag for Doctrine MongoDB ODM listeners
See: doctrine/DoctrineMongoDBBundle#80
2012-03-23 15:02:00 -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
Jeremy Mikola d3a2335a55 Refactor IndexManager construction (preserves API)
Provide the default index name rather than the service itself. Additionally, inject references to each index by name instead of the definitions.
2012-03-12 12:07:51 -04:00
Richard Miller 3e50cc95b5 Merge branch '2.0' 2012-02-27 20:13:39 +00:00
Richard Miller 118151db7c Added null_value to mapping configuration 2012-02-27 20:11:25 +00:00
Richard Miller d67cd8f9ba Merge remote-tracking branch 'origin/2.0' 2012-02-03 12:40:42 +00:00
Richard Miller 1d2887a83b Cleaned up doctrine removal fix changes 2012-01-26 09:59:58 +00:00
Richard Miller 65be0a415e Fixing issue with removing mapped Doctrine entities/documents 2012-01-25 19:51:10 +00:00
Richard Miller 38f31eca3c Merge branch '2.0'
Conflicts:
	DependencyInjection/FOQElasticaExtension.php
2012-01-25 13:51:16 +00:00
Richard Miller e00aa3a077 Removed unnecessary definition setting 2012-01-25 12:14:20 +00:00
Richard Miller 131a65e411 Allowed repositories for Propel driver 2012-01-25 12:10:35 +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 bb87a0be74 Made default manager configurable
Conflicts:

	DependencyInjection/FOQElasticaExtension.php
	Resources/config/config.xml
	Resources/config/mongodb.xml
	Resources/config/orm.xml
	Resources/config/propel.xml
2012-01-25 11:47:11 +00:00
Richard Miller ac3edc23a4 Changed to separate repository manager for each driver 2012-01-25 11:36:50 +00:00
Richard Miller 6eff104d6d Merge branch '2.0'
Conflicts:
	DependencyInjection/FOQElasticaExtension.php
	Manager/RepositoryManager.php
	README.md
	Resources/config/config.xml
	Resources/config/propel.xml
2012-01-12 16:34:19 +00:00
Jeremy Mikola ce82e8f591 Merge pull request #62 from merk/patch-1
Fix index wide finder config check
2012-01-12 16:11:44 +00:00
Jeremy Mikola 0d0c653777 Merge pull request #58 from merk/index_transformer
Index wide finder
Conflicts:

	DependencyInjection/FOQElasticaExtension.php
	Resources/config/config.xml
2012-01-12 16:10:28 +00:00
Jeremy Mikola b21e063c9c Ensure persistence.driver option exists before validating
The driver option is not required by the configuration, so we should check for it the validation functions.

If type_prototype is being used, there is a legitimate case where type definitions would not specify a driver. Likewise, the type_prototype may not specify the driver. If we wish to validate that a driver has been specified for a type, we'll have to do that in the extension class after loading the configuration and merging in prototypes.
2012-01-12 16:04:17 +00:00
Jeremy Mikola 5f83fd90c2 Merge pull request #51 from willdurand/propel-support
Propel support
Conflicts:

	DependencyInjection/FOQElasticaExtension.php
2012-01-12 16:01:33 +00:00
Tim Nagel aa5bac2ccc Fix index wide finder config check
Fixes index wide finder configuration. Fixes #61
2012-01-07 09:19:24 +11:00
Tim Nagel 9c4ef3d8bd Added finder capability for an index 2012-01-04 09:12:51 +11:00
Jeremy Mikola d0fdebb7d1 Ensure persistence.driver option exists before validating
The driver option is not required by the configuration, so we should check for it the validation functions.

If type_prototype is being used, there is a legitimate case where type definitions would not specify a driver. Likewise, the type_prototype may not specify the driver. If we wish to validate that a driver has been specified for a type, we'll have to do that in the extension class after loading the configuration and merging in prototypes.
2011-12-28 17:51:07 -05:00
Richard Miller 510d411055 Made default manager configurable 2011-12-23 16:20:22 +00:00
William DURAND 00aa83df80 Fixed comments
see https://github.com/Exercise/FOQElasticaBundle/pull/51
2011-12-20 20:14:49 +01:00
William DURAND 55187d23bf Added Propel support
Refactored the configuration => BC break
2011-12-20 17:44:39 +01:00
Richard Miller 4e48bbd182 Merge pull request #46 from nurikabe/master
Allow variable "fields" configuration node for attachment mapping.
2011-12-16 20:08:34 +00:00
Richard Miller ade3cfaef1 Merge pull request #46 from nurikabe/master
Allow variable "fields" configuration node for attachment mapping.
2011-12-16 07:38:45 -08:00
nurikabe d4d05c2fc9 Allow variable "fields" configuration node for attachment mapping. 2011-12-12 17:12:48 +00:00
Richard Miller 1a921ec2a3 Added Doctrine shortcut names for getting repositories 2011-12-11 23:09:13 +00:00