massiveart / MassiveSearchBundle

MIT License
67 stars 24 forks source link

MassiveSearchBundle

.. image:: https://img.shields.io/github/workflow/status/massiveart/MassiveSearchBundle/Test%20application?label=test-workflow :target: https://github.com/massiveart/MassiveSearchBundle/actions

The purpose of this bundle is to provide flexible site search functionality.

This means it provides a way to index objects (for example Doctrine entities) and then to search for them using a query string.

This bundle provides:

By default it is configured to use the Zend Lucene library, which must be installed (see the suggests and require-dev sections in composer.json.

NOTE: This bundle is under developmenet and is not yet stable.

Installation

You can install the MassiveSearchBundle by adding it to composer.json:

.. code-block:: bash

composer require massive/search-bundle

And then include it in your AppKernel:

.. code-block:: php

class AppKernel
{
    public function registerBundles()
    {
        return array(
            // ...
            new \Massive\Bundle\SearchBundle\MassiveSearchBundle(),
        );
    }
}

You will also need to include a search library. The search libraries are listed in the suggests section of composer.json, and exact package versions can also be found in the require-dev section (as all the libraries are tested).

Documentation

See the official documentation_.

.. _documentation: http://massivesearchbundle.readthedocs.org