Blog Archives

  • Solarium PHP Solr client

    09-03-2011Author: basdenooijer

    I’ve worked on a lot of Solr implementations in PHP applications. There are multiple solutions: manual HTTP requests, the solr-php-client library, custom implementations etcetera. However they all have one issue in common: they only handle the communication with Solr, many other important parts like query building are not covered at all. And the parts that […]

    Read more , ,
  • Testing Solr update XML messages

    28-01-2011Author: basdenooijer

    When updating a Solr index with the DataImportHandler or one of the available Solr clients you don’t really need to bother with all the details of updates. Most clients just give a simplified “add”, “delete” and “commit” interface to Solr updates, issued as separate commands. For most clients these commands are actually translated into Solr […]

    Read more
  • Solr JNDI configuration

    17-01-2011Author: basdenooijer

    As a follow-up on my previous post Solr XML config includes I want to point out another good way to handle environment specific Solr settings: using JNDI. This is not a replacement for XML includes, but in cases where you just need a custom database connection or Solr home dir it might be better suited. […]

    Read more
  • Solr test dataset

    29-12-2010Author: basdenooijer

    For an opensource project I’m working on I need a good Solr test dataset. More info about the project will follow soon, but as a teaser I can already tell it’s Solr and PHP related ūüėČ The dataset needs to be of a reasonable size (not unrealisticly small, but not huge either) and it should […]

    Read more
  • Solr XML config includes

    30-10-2010Author: basdenooijer

    If you ever used Solr in a version controlled project you will probably have run into the same issues as I have: the solr config files contain definitions that you want to have in version control, but they also contain environment specific settings. You can use the version controlled configs as a distribution version which […]

    Read more
  • Integrating Solr with PHP

    20-07-2010Author: basdenooijer

    Currently there isn’t really a standard way to integrate Solr with PHP. For various projects I have used: manual HTTP requests PHP Solr extension solr-php-client library They all have their own pros and cons.

    Read more , ,
  • Complex Solr¬†faceting

    08-07-2010Author: basdenooijer

    When using Solr faceting sooner or later there will be a request for a complex facet, one that at first sight seems impossible using standard Solr faceting. However with some creative use of facets and a small bit of extra logic in your application you can create a very advanced faceting interface. In this example […]

    Read more
  • Newer posts »