Developed with love by KnpLabs Hire us for your project!
388

FOSElasticaBundle

by FriendsOfSymfony

Elasticsearch PHP integration for your Symfony2 project using Elastica

FOSElasticaBundle

This bundle provides integration with ElasticSearch and Elastica with
Symfony2. Features include:

  • Integrates the Elastica library into a Symfony2 environment
  • Automatically generate mappings using a serializer
  • Listeners for Doctrine events for automatic indexing

Note Propel support is limited and contributions fixing issues are welcome!

Build Status Total Downloads Latest Stable Version Latest Unstable Version

Documentation

Documentation for FOSElasticaBundle is in Resources/doc/index.md

Read the documentation for 3.0.x (master)

Read the documentation for 2.1.x

Installation

Installation instructions can be found in the documentation

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE
Copyright (c) 2011-2013 Exercise.com, Inc

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
fos_elastica:
clients:

# Prototype
id:
servers:
url: ~
host: ~
port: ~
proxy: ~
logger: false
headers:

# Prototype
name: []
transport: ~
timeout: ~
timeout: ~
headers: ~
indexes:

# Prototype
name:

# Defaults to the name of the index, but can be modified if the index name is different in ElasticSearch
index_name: ~
use_alias: false
client: ~
finder: false
type_prototype:
index_analyzer: ~
search_analyzer: ~
persistence:
driver: ~
model: ~
repository: ~
identifier: id
provider:
query_builder_method: createQueryBuilder
batch_size: 100
clear_object_manager: true
service: ~
listener:
insert: true
update: true
delete: true
flush: true
immediate: false
logger: false
service: ~
finder:
service: ~
elastica_to_model_transformer:
hydrate: true
ignore_missing: false
query_builder_method: createQueryBuilder
service: ~
model_to_elastica_transformer:
service: ~
serializer:
groups: []
version: ~
settings: Array
types:

# Prototype
name:
index_analyzer: ~
search_analyzer: ~
indexable_callback: ~
persistence:
driver: ~
model: ~
repository: ~
identifier: id
provider:
query_builder_method: createQueryBuilder
batch_size: 100
clear_object_manager: true
service: ~
listener:
insert: true
update: true
delete: true
flush: true
immediate: false
logger: false
service: ~
finder:
service: ~
elastica_to_model_transformer:
hydrate: true
ignore_missing: false
query_builder_method: createQueryBuilder
service: ~
model_to_elastica_transformer:
service: ~
serializer:
groups: []
version: ~
_id:
path: ~
properties:

# Prototype
name: []
dynamic_templates:

# Prototype
name:
match: ~
unmatch: ~
match_mapping_type: ~
path_match: ~
path_unmatch: ~
match_pattern: ~
properties:

# Prototype
name: []
_source:
excludes:

# Prototype
name: []
includes:

# Prototype
name: []
compress: ~
compress_threshold: ~
enabled: true
_boost:
name: ~
null_value: ~
_routing:
required: ~
path: ~
_parent:
type: ~
property: ~
identifier: id
_all:
enabled: true
index_analyzer: ~
search_analyzer: ~
_timestamp:
enabled: true
path: ~
format: ~
store: ~
index: ~
_ttl:
enabled: true
default: ~
store: ~
index: ~

# Defaults to the first client defined
default_client: ~

# Defaults to the first index defined
default_index: ~
default_manager: orm
serializer:
callback_class: FOS\ElasticaBundle\Serializer\Callback
serializer: serializer
  • Merge branch '3.1.x'
    By merk, 2 years ago
  • Release 3.1.0
    By merk, 2 years ago
  • Merge pull request #823 from merk/more-tests
    By merk, 2 years ago
  • Resetter tests
    By merk, 2 years ago
  • Fix translation of option keys for the Provider
    By merk, 2 years ago
  • Mark getSlice private
    By merk, 2 years ago
  • Provider refactoring
    By merk, 2 years ago
  • Cast result from ExpressionLanguage eval to bool
    By merk, 2 years ago
  • Indexable service improvements
    By merk, 2 years ago
  • AliasProcessor
    By merk, 2 years ago
  • Even more QA
    By merk, 2 years ago
  • More QA
    By merk, 2 years ago
  • Merge branch 'code-qa' into 3.1.x
    By merk, 2 years ago
  • Fixing scrutinizer issues
    By merk, 2 years ago
  • Add missing method to HighlightableModelInterface.
    By merk, 2 years ago
  • Move common sorting code to base Transformer class
    By merk, 2 years ago
  • Merge branch '3.1.x'
    By stof, 2 years ago
  • Merge branch '3.0.x' into 3.1.x
    By stof, 2 years ago
  • Update the changelog for 3.0.9
    By stof, 2 years ago
  • Merge branch '3.1.x'
    By stof, 2 years ago
  • Merge branch '3.0.x' into 3.1.x
    By stof, 2 years ago
  • Fix the service definitions when the logger is not set in listener
    By stof, 2 years ago
  • Fix issues with CS merge
    By merk, 2 years ago
  • Merge branch '3.1.x'
    By merk, 2 years ago
  • Merge pull request #818 from merk/cs-fixes-30
    By merk, 2 years ago
  • CS fixes for 3.1
    By merk, 2 years ago
  • Merge cs-fixes-30 into cs-fixes-31
    By merk, 2 years ago
  • We do not provide API guarantees
    By merk, 2 years ago
  • Elastica, Doctrine\Common and Doctrine\ORM are required for tests
    By merk, 2 years ago
  • CS fixes
    By merk, 2 years ago