Problem with date range search using acts as solr

i am struck up with solr’s date range search.
I have used acts_as_solr plugin in my rails project. My model looks like

acts_as_solr :fields => [:title,{:createdate=>:date}]

No problem,if i used following date range search format
=> model.find_by_solr(“createdate:[NOW-1DAY TO NOW+1DAY”]

if i used following format
=> model.find_by_solr(“createdate:[2010-07-02T00:00:00.000Z TO
i got error like
“RuntimeError: There was a problem executing your search:
Couldn’t connect to the Solr server at 400

how to resolve this problem ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs