realestateconz/solr-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Solr ODM Bundle

Installs: 414

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2013-11-07 00:46 UTC

This package is not auto-updated.

Last update: 2023-11-25 09:07:05 UTC


README

Introduction

SolrBundle provides ODM support for solr

Installation

Step 1: Install SolrBundle

Add the following dependency to your composer.json file:

{
    "require": {
		...,
        "realestateconz/solr-bundle": "master-dev"
    }
}

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Realestate\SolrBundle\RealestateSolrBundle(),
    );
}

Step 3: Configure

# app/config/config.yml
realestate_solr:
    solarium:
        connection:
            adapter: Realestate\SolrBundle\Bridge\Solarium\Adapter\ZendHttp
            adapteroptions:
                host: localhost
                port: 8080
                path: /solr
                timeout: 10
                adapter: Zend_Http_Client_Adapter_Curl