2017 © Pedro Peláez
 

symfony-bundle solr-bundle

Solr Bundle

image

simplethings/solr-bundle

Solr Bundle

  • Tuesday, December 19, 2017
  • by DavidBadura
  • Repository
  • 8 Watchers
  • 6 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SimpleThingsSolrBundle

Build Status, (*1)

Installing

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

Configuration

app/config/config.yml, (*2)

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, (*3)

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

The Versions