simplethings/solr-bundle

Solr Bundle

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 6

Forks: 3

Open Issues: 0

Type:symfony-bundle

1.0.1 2017-12-19 16:34 UTC

This package is auto-updated.

Last update: 2024-11-11 02:17:47 UTC


README

Build Status

Installing

$ composer require simplethings/solr-bundle
public function registerBundles()
{
    // ...
    new Nelmio\SolariumBundle\NelmioSolariumBundle(),
    new SimpleThings\Bundle\SolrBundle\SimpleThingsSolrBundle(),
    // ...
}

Configuration

app/config/config.yml

simple_things_solr:
    config_files:
      -
        prefix: Acme\Bundle\AcmeBundle\Entity
        path: "%kernel.root_dir%/../src/Acme/Bundle/AcmeBundle/Resources/config/solr"

src/Acme/Bundle/AcmeBundle/Resources/config/solr/Blog.yml

Acme\Bundle\AcmeBundle\Entity\Blog:
  type: document
  fields:
    id: id
    name: 
      type: text
      copy:
        - fulltext
    text:
      type: textSpell
      copy:
        - fulltext
    fulltext:
      type: textSpell
      mapped: false
      multiValued: true