I wanted to write down some strange behavior I came across… hopefully it’ll help someone.
Firstly, SOLR 1.4 changed the date range query syntax. Instead of “createddate[* to NOW]” try “createddate[* NOW]“.
Secondly running empty query with SOLR 1.4 and solrlocal has a funny syntax. If I’m doing a blank search without localsolr I’d just use a space (or %20) to select all. But, when I include localsolr syntax, I have to use the old q=*:* syntax.
Hope this helps someone to not waste as much time as I did trying to figure it out. If your developing in Drupal and want location-based search using solr, please check out http://drupal.org/node/347428
That syntax for blank searches also applies to blank multi-faceted searches, where you need to use q=*:* in order to get the top-level facet counts (otherwise the search just results in an error).
– Jason
Comment by Jason Judge — August 27, 2009 @ 12:11 pm
Hi,
I’ve created a guide on how to install LocalSolr onto the windows platform using Solr 1.4 as a starting point. Some of your readers may find it helpful. If so here is the link:
http://craftyfella.blogspot.com/2009/12/installing-localsolr-onto-solr-14.html
Comment by CraftyFella — December 30, 2009 @ 4:48 pm
It looks like the old range syntax is still supported; the new syntax is strictly an addition.
Seems worth noting; I was initially alarmed when I stumbled over this.
Comment by Fred Drake — May 11, 2010 @ 6:48 pm