Commit graph

1,015 commits

Author SHA1 Message Date
nurikabe
ed21e60869 Remove upgrade doc. Merk will add manually. 2013-12-03 23:40:00 +00:00
nurikabe
22a5d67d05 pre/postFlush configuration. Update documentation. 2013-12-03 20:41:26 +00:00
nurikabe
af2827df01 Re-add renamed Listener. 2013-12-03 14:01:21 +00:00
Damien Alexandre
8a4848a16d Add UPGRADE-3.0.md file with descriptions of new features / changes 2013-12-02 22:35:50 +01:00
Damien Alexandre
25e59a311b Fix Persister constructor and undefined property 2013-12-02 22:26:30 +01:00
Damien Alexandre
cf3e35e892 Remove extra line-break 2013-12-02 22:15:11 +01:00
nurikabe
1d700261ab Refactor to a single Listener class. Update tests. 2013-12-02 12:42:04 +00:00
nurikabe
5ec652063d Don't need postRemove. 2013-12-01 21:48:41 +00:00
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
b149ac235b Replace deprecated calls Document::add to Document::set 2013-11-29 13:53:25 +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
Luis Cordova
c82006e8ac fix typos 2013-11-20 07:48:00 -05:00
Tim Nagel
40d3df9f92 Merge branch '2.1.x'
Conflicts:
	Finder/TransformedFinder.php
2013-11-19 08:29:02 +11:00
Tim Nagel
4fb0545a78 Merge branch '2.0.x' into 2.1.x 2013-11-19 08:27:41 +11:00
Tim Nagel
a3077e1b53 Merge pull request #402 from XWB/mlt-fix
TransformedFinder::moreLikeThis: use \Elastica_Document instead of \Document
2013-11-16 23:44:07 -08:00
Karel Souffriau
97aadf4897 TransformedFinder::moreLikeThis: use \Elastica_Document instead of \Document 2013-11-15 17:51:26 +01:00
Tim Nagel
3c26f157aa Merge branch '2.1.x'
Conflicts:
	Tests/ResetterTest.php
2013-11-11 13:30:29 +11:00
Matyas Somfai
3f784b0a5b added new options to fos:elastica:populate command and options array parameter to ProviderInterface
removed assume-yes option as the no-interaction option has the same purpose
2013-11-11 13:23:28 +11:00
Tim Nagel
52d5d0d55f Remove incorrect copyright header 2013-11-11 13:21:36 +11:00
Tim Nagel
7464625566 Merge pull request #399 from merk/query-builder-transformers
Add query_builder_method option to the transformers
2013-11-10 18:19:22 -08:00
Tim Nagel
9b6b0b0148 Add query_builder_method option to the transformers 2013-11-11 13:14:02 +11:00
Tim Nagel
08697a4d84 Merge pull request #397 from igorRovenki/master
Update README.md
2013-11-06 13:03:10 -08:00
igorRovenki
be4c99a0d3 Update README.md
Should be "listener: ~" on the line 595, otherwise listener does not working
2013-11-06 11:01:53 +02: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
Tim Nagel
8a14fbd73b Merge pull request #394 from pierredup/master
Add Symfony ExpressionLanguage support for indexable callback
2013-11-04 01:59:40 -08:00
Pierre du Plessis
f972b4af59 Fixed CS 2013-11-04 08:50:41 +02:00
Pierre du Plessis
97c98a0243 Add Symfony ExpressionLanguage support for indexable callback 2013-11-04 00:09:21 +02:00
Tim Nagel
28641427d5 Merge tag 'v2.1.3-PL1' 2013-11-01 09:17:17 +11:00
Tim Nagel
7f8a8e95e6 Merge tag 'v2.0.3-PL1' into 2.1.x v2.1.3-PL1 2013-11-01 09:16:27 +11:00
Tim Nagel
21ce3cf6ff Fix definition decorators (closes #393) v2.0.3-PL1 2013-11-01 09:15:38 +11: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
6e0f144ec2 Merge pull request #339 from FriendsOfSymfony/2.0.x-definition-decorators
2.0.x definition decorators
2013-10-30 14:09:43 -07: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
Tim Nagel
ca57b0d72e Merge pull request #379 from smatyas/populate-command-provider-options
New options to fos:elastica:populate command: offset, sleep, batch-size
2013-10-29 17:10:46 -07:00
Matyas Somfai
43e026500c added new options to fos:elastica:populate command and options array parameter to ProviderInterface
removed assume-yes option as the no-interaction option has the same purpose
2013-10-30 00:02:34 +01:00
Tim Nagel
85c4dc92f9 Merge tag 'v2.1.3'
Conflicts:
	DependencyInjection/Configuration.php
	README.md
2013-10-30 09:06:48 +11:00
Tim Nagel
8f49b246bc Merge tag 'v2.0.3' into 2.1.x v2.1.3 2013-10-30 09:01:05 +11:00
Tim Nagel
f97dc21030 Merge pull request #355 from richardmiller/add-mlt v2.0.3
Add moreLikeThis query to finder
2013-10-29 14:55:00 -07:00
Tim Nagel
cfaa85f1c5 Merge pull request #389 from XWB/add_format_field
Add date format field
2013-10-29 14:54:17 -07:00
Karel Souffriau
9d1201099d Add date format field 2013-10-29 12:20:32 +01:00
Tim Nagel
c6b01a2c50 Merge pull request #382 from thierrymarianne/master
Fix type hinting in "Manual provider" example
2013-10-17 15:05:42 -07:00
Thierry Marianne
85a10613ba Fix type hinting in "Manual provider" example 2013-10-17 22:40:28 +02:00