PHPackages                             hbryan/postgres-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. hbryan/postgres-search-bundle

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

hbryan/postgres-search-bundle
=============================

Tools to use full-text search PostgreSQL in Doctrine.

0121PHP

Since Dec 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/H-Bryan/postgres-search-bundle)[ Packagist](https://packagist.org/packages/hbryan/postgres-search-bundle)[ RSS](/packages/hbryan-postgres-search-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PostgreSearchBundle
===================

[](#postgresearchbundle)

Symfony2 bundle with tools [full-text search PostgreSQL](http://www.postgresql.org/docs/9.1/static/textsearch.html) in Doctrine 2.

Added type 'tsvector' to be used in the mapping.

Added functions 'to\_tsquery', 'plainto\_tsquery' and 'ts\_rank' to be used in the DQL.

### Step 1: Download PostgreSearchBundle using composer

[](#step-1-download-postgresearchbundle-using-composer)

Add PostgreSearchBundle in your composer.json:

```
{
    "require": {
        "hbryan/postgres-search-bundle": "dev-master"
    }
}
```

Now tell composer to download the bundle by running the command:

```
$ php composer.phar update intaro/postgres-search-bundle
```

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
