realestateconz/solr-bundle

该软件包已被弃用,不再维护。未建议替代软件包。

Solr ODM Bundle

安装: 414

依赖项: 0

建议者: 0

安全: 0

星标: 1

关注者: 3

分支: 0

开放问题: 0

类型: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

介绍

SolrBundle 为 solr 提供ODM支持

安装

步骤 1:安装 SolrBundle

将以下依赖项添加到您的 composer.json 文件中

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

步骤 2:启用软件包

最后,在内核中启用软件包

<?php
// app/AppKernel.php

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

步骤 3:配置

# 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