Solarium 3.0.0 released

Finally Solarium 3.0.0 is out! This is the biggest changeset for Solarium since the start of the project, and includes the following:

  • Support only PHP 5.3+
  • Fully namespaced
  • File restructuring and class renaming
  • Code style switched from Zend Framework 1 to Symfony 2 (but Solarium is still not tied to a framework!)
  • The concept of ‘Endpoints’ was introduced to support multiple Solr instances/cores in one client
  • Interfaces were added for all important concepts in the library
  • Internal classmaps for querytypes and components were simplified
  • The default adapter has been switched to Curl
  • OmitHeader support was added and enabled by default
  • Edismax is now a separate component (used to be combined with Dismax)
  • Http authentication support
  • Support for the Extract querytype, to index various documents
  • Support for PHPS Solr response data (in some cases much faster)
  • Custom hooks have been replaced by the very well documented and tested Symfony EventDispatcher component.
  • CreateFacet* methods can now directly add the created facet
  • The spellcheck component query now supports placeholders
  • Tagging and excluding of the main querystring is now supported
  • Added new grouping params: group.func, group.format, group.facet
  • Update query supports softCommit
  • The Curl adapter now has proxy support
  • Geospatial functions in query helper now support dereferenced params
  • Facet results can now be extracted from the response data (facets defined in the Solr config, not in your Solarium query
For more detailed info see these earlier posts:

All the features have been documented in the manual and example code for new features or updated features is included in the release. An upgrade guide is also available in the manual.

Starting from this version no pre-packaged versions of the library will be supplied on the site anymore. The recommended way to install Solarium is by using Composer that also manages the Symfony EventDispatcher dependency. You can find Solarium on Packagist .

If you somehow still want or need to manually download the library, just get a package from Github. But in that case you need to manually manage dependencies.

If you run into any issues during an upgrade from 2.x that are not described in the upgrade guide please let me know, so it can be added.

Last but not least, I want the thank the various people that contributed to Solarium 3, great work! And some nice pull requests are already waiting for Solarium 3.1!

2 Responses to “Solarium 3.0.0 released”

  1. fidelsantana January 11, 2013 at 20:50 #

    I installed the latest version of Solr 4.0.0 on Tomcat 7.0.28 server on Xampp 1.8.0. I Downloaded the latest version of the 3.0.0 Solarium will add dependencies to Composer, but when I run the examples that brings the Solarium project gives me the following error:

    (!) Fatal error: Uncaught exception ‘SolariumExceptionHttpException’ with message ‘in C: xampphtdocslildbiwebsolarium-masterlibrarySolariumCoreQueryResultResult.php on line 104
    (!) SolariumExceptionHttpException: Solr HTTP error: OK (503) <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1″> ERROR: The requested URL could not be obtained <STYLE ERROR The requested URL could not be obtained While trying to retrieve the URL: <A The next problem: Connection failed. The system returned the following message: (111) Connection refused remote computer or network may be out service. Please try the request again. in C: xampphtdocslildbiwebsolarium-masterlibrarySolariumCoreQueryResultResult.php on line 104

    I do not understand this error since I have Solr running perfectly for the Tomcat port 8080, admin works fine me. A ah someone happened?? thanks in advance

Leave a Reply

Comments are reviewed before display because of spam issues, so it might take a while for your comment to show up.

You must be logged in to post a comment.