PHPackages                             mixailshaulsky/elasticsearch-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mixailshaulsky/elasticsearch-bundle

ActiveSymfony-bundle

mixailshaulsky/elasticsearch-bundle
===================================

Elasticsearch bundle for Symfony.

v6.0.4(6y ago)03MITPHPPHP ^7.1

Since Oct 30Pushed 6y agoCompare

[ Source](https://github.com/mixailshaulsky/ElasticsearchBundle)[ Packagist](https://packagist.org/packages/mixailshaulsky/elasticsearch-bundle)[ Docs](https://shaulsky.dev)[ RSS](/packages/mixailshaulsky-elasticsearch-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (25)Versions (84)Used By (0)

What is it?
===========

[](#what-is-it)

This is the fork [ONGR Elasticsearch Bundle](https://github.com/ongr-io/ElasticsearchBundle) with ability to customize [Index similarity](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/index-modules-similarity.html)

Step 1: Configure bundle
------------------------

[](#step-1-configure-bundle)

```
# config/packages/ongr_elasticsearch.yaml
ongr_elasticsearch:
    analysis:
        filter:
            edge_ngram_filter: #-> your custom filter name to use in the analyzer below
                type: edge_ngram
                min_gram: 1
                max_gram: 20
        analyzer:
            eNgramAnalyzer: #-> analyzer name to use in the document field
                type: custom
                tokenizer: standard
                filter:
                    - lowercase
                    - edge_ngram_filter #that's the filter defined earlier
        similarity:
            scripted_tfidf:
              type: scripted
              script:
                source: "double tf = Math.sqrt(doc.freq); double idf = 1.0; double norm = 1/Math.sqrt(doc.length); return query.boost * tf * idf * norm;"
    indexes:
        App\Document\Product:
            hosts: [elasticsearch:9200] # optional, the default is 127.0.0.1:9200
```

Step 2: Configure your custom similarity for `Document` field
-------------------------------------------------------------

[](#step-2-configure-your-custom-similarity-for-document-field)

```
// src/Document/Product.php

namespace App\Document;

use ONGR\ElasticsearchBundle\Annotation as ES;

/**
 * //alias and default parameters in the annotation are optional.
 * @ES\Index(alias="products", default=true)
 */
class Product
{
    /**
     * @ES\Id()
     */
    public $id;

    /**
     * @ES\Property(type="text", similarity="scripted_tfidf")
     */
    public $title;

    /**
     * @ES\Property(type="float")
     */
    public $price;
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 51.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~9 days

Total

82

Last Release

2288d ago

Major Versions

v1.2.9 → v5.0.12017-03-30

v1.2.10 → v5.2.32018-12-12

v5.2.4 → v6.0.0-beta2019-03-19

v5.2.5 → v6.0.02019-10-07

5.2.x-dev → v6.0.22020-02-05

PHP version history (8 changes)v0.1.0PHP &gt;=5.4

v1.0.0-alpha.1PHP &gt;=5.5

v5.0.0-rc1PHP ^5.6.6|^7.0

v5.0.0-rc3PHP &gt;=5.6

v5.0.7PHP &gt;=5.6,&lt;7.2

v5.2.2PHP &gt;=5.6,&lt;7.3

v5.2.3PHP &gt;=5.6,&lt;7.4

v6.0.0-betaPHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/86b21133489b7f513112bf5e7034491b25e90134eeb16b9c99af3cfc61ab0688?d=identicon)[mixailshaulsky](/maintainers/mixailshaulsky)

---

Top Contributors

[![saimaz](https://avatars.githubusercontent.com/u/115824?v=4)](https://github.com/saimaz "saimaz (327 commits)")[![einorler](https://avatars.githubusercontent.com/u/13484571?v=4)](https://github.com/einorler "einorler (65 commits)")[![mvar](https://avatars.githubusercontent.com/u/1286752?v=4)](https://github.com/mvar "mvar (42 commits)")[![Zylius](https://avatars.githubusercontent.com/u/5536051?v=4)](https://github.com/Zylius "Zylius (37 commits)")[![linasmo](https://avatars.githubusercontent.com/u/10021248?v=4)](https://github.com/linasmo "linasmo (19 commits)")[![tomaspocevicius](https://avatars.githubusercontent.com/u/2837127?v=4)](https://github.com/tomaspocevicius "tomaspocevicius (16 commits)")[![dvondrak](https://avatars.githubusercontent.com/u/11498368?v=4)](https://github.com/dvondrak "dvondrak (14 commits)")[![juliensantos87](https://avatars.githubusercontent.com/u/1322356?v=4)](https://github.com/juliensantos87 "juliensantos87 (12 commits)")[![LTRocky](https://avatars.githubusercontent.com/u/4585481?v=4)](https://github.com/LTRocky "LTRocky (11 commits)")[![asev](https://avatars.githubusercontent.com/u/10020928?v=4)](https://github.com/asev "asev (11 commits)")[![tautrimas](https://avatars.githubusercontent.com/u/364223?v=4)](https://github.com/tautrimas "tautrimas (11 commits)")[![GrandLTU](https://avatars.githubusercontent.com/u/6538692?v=4)](https://github.com/GrandLTU "GrandLTU (9 commits)")[![nibsirahsieu](https://avatars.githubusercontent.com/u/208039?v=4)](https://github.com/nibsirahsieu "nibsirahsieu (8 commits)")[![ndinh215](https://avatars.githubusercontent.com/u/8800820?v=4)](https://github.com/ndinh215 "ndinh215 (8 commits)")[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (5 commits)")[![chyzas](https://avatars.githubusercontent.com/u/7919897?v=4)](https://github.com/chyzas "chyzas (4 commits)")[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (4 commits)")[![ivannis](https://avatars.githubusercontent.com/u/754477?v=4)](https://github.com/ivannis "ivannis (4 commits)")[![fattouchsquall](https://avatars.githubusercontent.com/u/1328599?v=4)](https://github.com/fattouchsquall "fattouchsquall (3 commits)")[![norkunas](https://avatars.githubusercontent.com/u/2722872?v=4)](https://github.com/norkunas "norkunas (3 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mixailshaulsky-elasticsearch-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mixailshaulsky-elasticsearch-bundle/health.svg)](https://phpackages.com/packages/mixailshaulsky-elasticsearch-bundle)
```

###  Alternatives

[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
