getting started

a big part of this bundle’s functionality is about managing your solr instance from within your application / the command line.
knowing solr config files can be huge and you might have to multiply that for each of your cores, a config dump command is provided.
this command requests the configuration values from the given core, parses it and outputs the result in several config files (yaml and php only for now).
from there you can copy & paste / re-format / etc. and use the contents for your solrphp_solarium config node

config generate command

to dump a dummy config file from your schema.xml, solrconfig.xml and params.json run the command below.
by default it dumps all the manageable nodes. if you want to filter out one or more nodes, use the provided options.
$ php bin/console solr:config:generate <core-name> <format>
options:
  • --exclude-fields: do not dump fields configuration

  • --exclude-copy-fields: do not dump copy fields configuration

  • --exclude-dynamic-fields: do not dump dynamic fields configuration

  • --exclude-fields-types: do not dump field types configuration

  • --exclude-update-handler: do not dump update handler configuration

  • --exclude-query: do not dump query configuration

  • --exclude-request-dispatcher: do not dump request dispatcher configuration

  • --exclude-request-handlers: do not dump request handler configuration

  • --exclude-search-components: do not dump search component configuration

  • --exclude-parameters: do not dump parameters configuration

data collector

this bundle comes with a data collector to ease debugging of your solr requests.

Note

if you have a custom dispatcher_service or dispatcher_class defined in your client config, the data collector will only work if its an instance of Symfony\Component\EventDispatcher\EventDispatcherInterface