lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Potter <thelabd...@gmail.com>
Subject Error when trying to do Partial Document Update on multi-valued DATE field
Date Thu, 10 Jan 2013 20:03:02 GMT
Hi,

Using Solr 4.0, I'm sending a partial document update request (as JSON) and
it's failing with this error:

SEVERE: shard update error
http://URL:8984/solr/CORE/:org.apache.solr.common.SolrException: Invalid
Date in Date Math String:'[2012-08-01T00:00:00Z, 2012-08-02T00:00:00Z,
2012-08-03T00:00:00Z]'
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:401)
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:181)
at
org.apache.solr.update.SolrCmdDistributor$1.call(SolrCmdDistributor.java:335)
at
org.apache.solr.update.SolrCmdDistributor$1.call(SolrCmdDistributor.java:309)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

The JSON I'm sending looks like:

 [
    {
        "id":"SOME_ID",
         "date_field_name":
             {

"set":["2012-08-01T00:00:00Z","2012-08-02T00:00:00Z","2012-08-03T00:00:00Z"]
              }
    }
]

I'm thinking this *should* work. Am I missing something obvious?

Cheers,
Tim

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message