PHPackages                             elinoi-dev/elinoi-search-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. [Search &amp; Filtering](/categories/search)
4. /
5. elinoi-dev/elinoi-search-bundle

ActiveSymfony-bundle[Search &amp; Filtering](/categories/search)

elinoi-dev/elinoi-search-bundle
===============================

Make sure search:import soesn't stop mid-process

1.1(2y ago)07.5kMITPHPPHP &gt;= 8.0.2

Since Jun 5Pushed 2y agoCompare

[ Source](https://github.com/elinoi-dev/elinoi-search-bundle)[ Packagist](https://packagist.org/packages/elinoi-dev/elinoi-search-bundle)[ RSS](/packages/elinoi-dev-elinoi-search-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (17)Versions (4)Used By (0)

 [ ![Algolia for Symfony](https://raw.githubusercontent.com/algolia/algoliasearch-client-common/master/banners/symfony.png) ](https://www.algolia.com)

####  The perfect starting point to integrate [Algolia](https://algolia.com) within your Symfony project

[](#--the-perfect-starting-point-to-integrate---algolia---within-your-symfony-project--)

 [![CircleCI](https://camo.githubusercontent.com/a3d95748728b5447e544593615db39f2bdb1f08dd370bdff69930366044de61e/68747470733a2f2f636972636c6563692e636f6d2f67682f616c676f6c69612f7365617263682d62756e646c652e7376673f7374796c653d736869656c64)](https://circleci.com/gh/algolia/search-bundle) [![Total Downloads](https://camo.githubusercontent.com/b8557bd0d1bfabe9dec86b9be7ff32b37919bac6f70c84b471237aa43eed8504/68747470733a2f2f706f7365722e707567782e6f72672f616c676f6c69612f7365617263682d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/algolia/search-bundle) [![Latest Version](https://camo.githubusercontent.com/a43ca6aba24a876d2a72b419f5cc65407a8bd0aca94227c26d8829cdadb5da74/68747470733a2f2f706f7365722e707567782e6f72672f616c676f6c69612f7365617263682d62756e646c652f762f737461626c65)](https://packagist.org/packages/algolia/search-bundle) [![License](https://camo.githubusercontent.com/985a5208f4c4aa5b6ffa05bcc04c9a03a9197a7e78d141a1735c54cf7532d17f/68747470733a2f2f706f7365722e707567782e6f72672f616c676f6c69612f7365617263682d62756e646c652f6c6963656e7365)](https://packagist.org/packages/algolia/search-bundle)

 [Documentation](https://www.algolia.com/doc/framework-integration/symfony/getting-started) • [PHP](https://github.com/algolia/algoliasearch-client-php) • [Laravel](https://github.com/algolia/scout-extended) • [Community Forum](https://discourse.algolia.com) • [Stack Overflow](http://stackoverflow.com/questions/tagged/algolia) • [Report a bug](https://github.com/algolia/search-bundle/issues) • [FAQ](https://www.algolia.com/doc/framework-integration/symfony/troubleshooting/faq/) • [Support](https://www.algolia.com/support)

✨ Features
----------

[](#-features)

- **Simple**: You can get started with only 5 lines of YAML
- **Robust**: It benefits from all the new features of our PHP Client v2, like the [`wait()`](/doc/api-reference/api-methods/wait-task/) method
- **Flexible**: All methods take optional `$requestOptions` to let you handle your data as you wish
- **Dev-friendly**: Auto-completion and type-hinting thanks to an exhaustive documentation

Algolia SearchBundle supports PHP &gt; 7.1

💡 Getting Started
-----------------

[](#-getting-started)

First, install Algolia Search Bundle Integration via the composer package manager:

```
composer require algolia/search-bundle
```

You will also need to provide the Algolia App ID and Admin API key. By default, they are loaded from environment variables `ALGOLIA_APP_ID` and `ALGOLIA_API_KEY`.

If you use `.env` config file, you can set them there.

```
ALGOLIA_APP_ID=XXXXXXXXXX
ALGOLIA_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

If you don't use environment variables, you can set them in your `parameters.yml`.

```
parameters:
    env(ALGOLIA_APP_ID): XXXXXXXXXX
    env(ALGOLIA_API_KEY): xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

Indexing data
-------------

[](#indexing-data)

First, we need to define which entities should be indexed in Algolia. Each entry under the `indices` config key must contain at least the 2 following attributes:

- `name` is the canonical name of the index in Algolia
- `class` is the full name of the entity to index

Example:

```
algolia_search:
  indices:
    - name: posts
      class: App\Entity\Post
```

### Via CLI

[](#via-cli)

Once your `indices` config is ready, you can use the built-in console command to batch import all existing data.

```
# Import all indices
php bin/console search:import

# Choose what indices to reindex by passing the index name
php bin/console search:import --indices=posts,comments
```

Before re-indexing everything, you may want to clear the index first, see [how to remove data](https://www.algolia.com/doc/framework-integration/symfony/indexing/?language=php#removing-manually).

Simple Search
-------------

[](#simple-search)

In this example we'll search for posts. The `search` method will query Algolia to get matching results and then will create a doctrine collection. The data are pulled from the database (that's why you need to pass the Doctrine Manager).

```
$em = $this->getDoctrine()->getManagerForClass(Post::class);

$posts = $this->searchService->search($em, Post::class, 'query');
```

For full documentation, visit the **[Algolia Symfony Search Bundle](https://www.algolia.com/doc/framework-integration/symfony/getting-started/)**.

Troubleshooting
---------------

[](#troubleshooting)

Encountering an issue? Before reaching out to support, we recommend heading to our [FAQ](https://www.algolia.com/doc/framework-integration/symfony/troubleshooting/faq/) where you will find answers for the most common issues and gotchas with the bundle.

Use the Dockerfile
------------------

[](#use-the-dockerfile)

If you want to contribute to this project without installing all its dependencies, you can use our Docker image. Please check our [dedicated guide](DOCKER_README.MD) to learn more.

📄 License
---------

[](#-license)

Algolia Symfony Search Bundle is an open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~30 days

Total

2

Last Release

1042d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7ebc98feb53a11e63d5ad3ca0037b54fb12857898f9b95a6f419bc6cbc5c423?d=identicon)[remy-elinoi](/maintainers/remy-elinoi)

---

Top Contributors

[![julienbourdeau](https://avatars.githubusercontent.com/u/1525636?v=4)](https://github.com/julienbourdeau "julienbourdeau (226 commits)")[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (73 commits)")[![chloelbn](https://avatars.githubusercontent.com/u/2184068?v=4)](https://github.com/chloelbn "chloelbn (63 commits)")[![djfm](https://avatars.githubusercontent.com/u/1460499?v=4)](https://github.com/djfm "djfm (56 commits)")[![alcaeus](https://avatars.githubusercontent.com/u/383198?v=4)](https://github.com/alcaeus "alcaeus (38 commits)")[![maxiloc](https://avatars.githubusercontent.com/u/1689007?v=4)](https://github.com/maxiloc "maxiloc (37 commits)")[![algoliareadmebot](https://avatars.githubusercontent.com/u/18572634?v=4)](https://github.com/algoliareadmebot "algoliareadmebot (22 commits)")[![tristanbes](https://avatars.githubusercontent.com/u/346010?v=4)](https://github.com/tristanbes "tristanbes (20 commits)")[![redox](https://avatars.githubusercontent.com/u/29529?v=4)](https://github.com/redox "redox (15 commits)")[![DevinCodes](https://avatars.githubusercontent.com/u/46448173?v=4)](https://github.com/DevinCodes "DevinCodes (11 commits)")[![rayrutjes](https://avatars.githubusercontent.com/u/5570853?v=4)](https://github.com/rayrutjes "rayrutjes (7 commits)")[![gregquat](https://avatars.githubusercontent.com/u/293127?v=4)](https://github.com/gregquat "gregquat (5 commits)")[![matts2cant](https://avatars.githubusercontent.com/u/1333408?v=4)](https://github.com/matts2cant "matts2cant (5 commits)")[![7Mat7](https://avatars.githubusercontent.com/u/61050934?v=4)](https://github.com/7Mat7 "7Mat7 (4 commits)")[![ostrolucky](https://avatars.githubusercontent.com/u/496233?v=4)](https://github.com/ostrolucky "ostrolucky (2 commits)")[![brunonic](https://avatars.githubusercontent.com/u/1011840?v=4)](https://github.com/brunonic "brunonic (2 commits)")[![mpclarkson](https://avatars.githubusercontent.com/u/4843821?v=4)](https://github.com/mpclarkson "mpclarkson (2 commits)")[![ogizanagi](https://avatars.githubusercontent.com/u/2211145?v=4)](https://github.com/ogizanagi "ogizanagi (2 commits)")[![mchahed99](https://avatars.githubusercontent.com/u/34678981?v=4)](https://github.com/mchahed99 "mchahed99 (2 commits)")[![cjean-fr](https://avatars.githubusercontent.com/u/87385?v=4)](https://github.com/cjean-fr "cjean-fr (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/elinoi-dev-elinoi-search-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/elinoi-dev-elinoi-search-bundle/health.svg)](https://phpackages.com/packages/elinoi-dev-elinoi-search-bundle)
```

###  Alternatives

[algolia/search-bundle

Algolia Search integration for Symfony

1931.5M2](/packages/algolia-search-bundle)[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)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[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)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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