Commit graph

290 commits

Author SHA1 Message Date
Delf Tonder 8060d3dcd7 fixing missing flush event handler
In [commit](843c76b6ca (diff-850942b3ba24ab03a40aaa81b6152852)) the configuration-definition for the flush listener was accidentally removed. 
As the flush listener is no longer set to be enabled in the extensions getDoctrineEvents method, the flush listener is not set. 
This results in a situation were we are only able to have the modified objects on the list for index-update, but never actually sending the update to the ES host.
2014-05-25 18:51:14 +02:00
Tim Nagel 53180e2810 Bring tidy in line with property renaming 2014-05-25 20:14:51 +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 a9ea78443f Support Elastica proxy option 2014-05-24 00:17:59 +10:00
Tim Nagel 458b53240b Merge branch 'configuration-fixes' 2014-05-23 23:21:29 +10:00
Tim Nagel f8a445b46c Fix disabling of logger in DoctrineProvider 2014-05-23 23:11:45 +10:00
Tim Nagel b09c7fb50e Merge branch 'master' of https://github.com/edast/FOSElasticaBundle 2014-05-23 22:51:11 +10:00
Tim Nagel 41c4d77b20 Move serializer node to its own method, add serializer to type_prototype 2014-05-23 22:49:03 +10:00
Tim Nagel 843c76b6ca Move persistence node to its own method 2014-05-23 22:49:02 +10:00
Tim Nagel 6d2b7a8367 Combine client normalisation into a single method 2014-05-23 22:48:19 +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
Tim Nagel 6253d3f8df Merge pull request #553 from benniekrijger/issue-552-geoshape-mapping
Added GeoShape mapping options
2014-05-23 22:03:58 +10:00
Darius Staisiunas 28d0ee925d added support for geohash 2014-05-23 12:55:33 +03:00
Milan Magudia 2c208a4f10 Allow other transport options to be used i.e. Http, Https, Guzzle etc... 2014-05-22 16:18:08 +01: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
Tim Nagel 6748c9c623 Merge pull request #571 from tPl0ch/feature-flush-event
Make it possible to disable flush event through configuration
2014-05-20 08:50:50 +10:00
Tim Nagel 72e7b77dae Merge pull request #562 from evillemez/config
stop config from adding empty arrays into type mappings
2014-05-20 08:49:26 +10:00
Tim Nagel 1c5339ac40 Merge pull request #560 from cassianotartari/master
Update Configuration.php
2014-05-20 08:48:51 +10:00
Thomas Ploch e5754ef5fc Make it possible to disable flush event through configuration 2014-05-13 13:13:06 +02:00
Lea Haensenberger b1d64e358d Also cleanup fields in properties of objects 2014-05-05 13:39:36 +02:00
Lea Haensenberger eaa9f83997 remove empty fields arrays from mapping, this is not ignored anymore by elasticsearch 1.* 2014-05-05 13:39:36 +02:00
Evan Villemez c93bbb9081 stop config from adding empty arrays into type mappings 2014-05-01 11:05:16 -04:00
Cassiano 39f1033a34 Update Configuration.php
Adding the option to set index_analyzer and search_analyzer to _all field.
2014-04-24 09:39:22 -03:00
ben 2bd6aba7ef Added GeoShape mapping options 2014-04-18 13:57:08 +02:00
Tim Nagel 1bc085141b Fix logger option for listeners 2014-04-10 13:14:03 +10:00
Tim Nagel b3fdf7b256 Logger for a listener is false by default 2014-04-10 13:05:23 +10:00
nurikabe a483471694 Set listener loggers to fos_elastica.logger if null 2014-04-04 22:56:47 -04:00
Evan Owens 53332eb057 Allow for catching/logging persistance errors per listener 2014-04-04 18:32:48 -04:00
Joris van de Sande 588c4e2d02 Unset nested "fields" for deeper nested configs too 2014-03-31 12:52:29 +02:00
Tim Nagel e25a5420a5 Logger enabled with debugging 2014-03-26 12:38:20 +11:00
Tim Nagel befb0907cc Merge branch 'master' into documentation
Conflicts:
	DependencyInjection/Configuration.php
	README.md
2014-03-25 16:04:32 +11:00
Joris van de Sande 455ff9e0f7 Unset fields if no nested fields are defined 2014-03-24 15:06:24 +01:00
Ray 41b347dfe4 Merge remote-tracking branch 'upstream/master'
Conflicts:
	Logger/ElasticaLogger.php
	README.md
2014-03-18 19:59:27 -04:30
rayrigam de70e78b53 Update Configuration.php
Updated to support any HTTP request header type in the "headers" section.
2014-03-18 18:14:03 -04:30
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
Tim Nagel 6cd69ad131 Merge pull request #361 from xphere-forks/master
Add support for include_in_parent and include_in_root options
2014-03-14 08:53:42 +11:00
Tim Nagel 48edc195cd Merge pull request #484 from bits4breakfast/containeraware-callback
Container is now available in Callback
2014-03-14 08:41:15 +11:00
Ray 0116a6ac4f Add support for clients requiring basic HTTP authentication 2014-03-06 12:38:23 -04:30
Berny Cantos 7f53badad5 Add support for include_in_{parent,root} for nested and objects 2014-03-06 12:31:50 +01:00
tgallice 418b9d72ce Rework configuration validation to fix #461 2014-03-04 17:58:10 +01:00
Matteo Galli eecdd3474a Fixes #459 2014-02-21 16:47:42 +01:00
Tim Nagel cb2eeba318 Merge pull request #461 from tgallice/url_parameter
Force slash at the end of the url parameter
2014-02-19 13:40:18 +11:00
Tim Nagel aa9d74a8a0 Merge remote-tracking branch 'PeerJ/AddServerTimeout'
Conflicts:
	DependencyInjection/Configuration.php
2014-02-19 13:39:03 +11:00
Patrick McAndrew 3065c96a2c Add ability to specify server timeout 2014-02-14 17:32:22 +00: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
tgallice 04390b37d1 Force slash at the end of the url parameter 2014-02-04 10:07:58 +01:00
nurikabe 93c6085fa5 Merge remote-tracking branch 'upstream/master' 2014-02-01 02:15:52 +00:00
Laszlo Horvath 5480e037e3 adding ttl for documents 2014-01-30 12:39:48 +01:00
Tim Nagel ef872dd22d Merge pull request #439 from FriendsOfSymfony/type-timestamp
Adding support for enabling timestamps
2014-01-20 12:57:02 -08:00
Tim Nagel f0f6fc8129 Merge pull request #441 from klmatom/master
Add similarity as a valid field mapping.  http://www.elasticsearch.org/g...
2014-01-20 12:56:47 -08:00
Tom A 4287a91d50 Add similarity as a valid field mapping. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html#similarity 2014-01-16 23:05:44 -05:00
nurikabe 4a4716a55b Merge remote-tracking branch 'upstream/master' 2014-01-11 16:38:29 +00:00
Vermi 73ee750515 Removing "->performNoDeepMerging()"in indexes configuration, allowing custom Bundle defining new types in an existing index.
Configuration is injected in the new Bundle using prependExtensionConfig()
2014-01-10 16:25:45 +01:00
Lea Haensenberger 274fc00991 Add store and index options to timestamp 2014-01-06 10:19:11 +01:00
Lea Haensenberger 4ee81dc010 Adding support for enabling timestamps 2014-01-06 09:20:44 +01:00
Tim Nagel 5f8b8003d1 Refactor documentation 2013-12-17 21:17:28 +11:00
Tim Nagel 90022b0d0a Move type configuration into independent method 2013-12-15 18:33:45 +11:00
Tim Nagel e2e21b1e0c Allow bundle to be used without clients or indexes defined. 2013-12-15 18:33:31 +11:00
nurikabe 3bd9155f46 Use constants of corresponding events classes rather than making assumption about string values. 2013-12-13 17:51:15 +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 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 eaf52fa907 Allow a more dynamic mapping for dynamic templates 2013-12-10 15:21:46 +01:00
Császár Dániel e16ece821d Fix client configuration missing logger 2013-12-10 13:54:50 +01:00
Tim Nagel da44ee65f6 Merge pull request #395 from pierredup/logger
Add option to enable logger and define logger class
2013-12-10 02:17:10 -08:00
Tim Nagel e1ed7bdc67 Merge pull request #420 from FriendsOfSymfony/all-field-config
Add support to disable the _all field for a type
2013-12-10 02:16:23 -08: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
Lea Haensenberger 8f1b52328f Merge remote-tracking branch 'origin/master' into all-field-config
Conflicts:
	DependencyInjection/FOSElasticaExtension.php
2013-12-06 08:25:02 +01:00
Lea Haensenberger 08193ec2fd Add support to disable the _all field for a type 2013-12-05 16:35:30 +01:00
Pierre du Plessis 759950aff6 Add option to disable logger or specify different logger service 2013-12-04 22:09:27 +02:00
nurikabe 3a279f8edb Remove debug. 2013-12-04 10:46:05 +00:00
Richard Miller a227a3f076 Merge branch '2.1.x' 2013-12-04 08:03:04 +00:00
Richard Miller 2980ee818a Merge branch '2.0.x' into 2.1.x 2013-12-04 08:02:22 +00:00
Ben Longden 8b6dffbc14 Adds enabled mapping option (default true) 2013-12-04 07:53:08 +00:00
nurikabe 22a5d67d05 pre/postFlush configuration. Update documentation. 2013-12-03 20:41:26 +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 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
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 2013-11-01 09:16:27 +11:00
Tim Nagel 21ce3cf6ff Fix definition decorators (closes #393) 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 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 85c4dc92f9 Merge tag 'v2.1.3'
Conflicts:
	DependencyInjection/Configuration.php
	README.md
2013-10-30 09:06:48 +11:00