anoop's blog

  • Archive
  • RSS
  • Ask me anything

Solr 4 Pro Tip

If you’ve upgraded to the alpha version of Solr 4 (as far as I can recall, this wasn’t a problem in the development trunk versions from a couple of months back), and you kept your schema.xml file, you may have noticed that deleteByQuery commands no longer work.

Here’s the simple fix (posted as an image because I can’t make damn Tumblr output code nicely).

Make sure that “version” statement is in your schema. I don’t know why it works, but it does.

Incidentally: if you’re using Solr through PHP, I recommend Solarium as an API. It seems to do just about everything, is well documented, and is updated with amazing frequency. It’s had support for Solr 4 features like join for some time now (although I believe I’m doing join manually).

I’ll detail how I’m using join in a later post.

  • 10 months ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

Mostly a development blog for the Andriasang.com Japanese game news site. But I'll also put pics of my adorable nephew Dylan and you can't do anything about it bwa ha ha ha ha.

I Dig These Posts

See more →
  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

2012 andriasang.com.

Effector Theme by Pixel Union