Q:

Invalid Date exception | SOLR

I am getting an invalid date string exception when searching for indexType:2013-06-26T18:30:00Z TO NOW.
The Stack trace I get is as follows:
Nov 18, 2013 10:19:18 AM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: Invalid Date String:'2013-06-26T18'
    at org.apache.solr.schema.DateField.parseMath(DateField.java:165)
    at org.apache.solr.schema.TrieField.readableToIndexed(TrieField.java:301)
    at org.apache.solr.schema.TrieField.toInternal(TrieField.java:309)

Solr Version: 3.5.0.2011.11.22.14.54.38
Although when I look in the index, it has the date value in absolutely the same pattern, so it is a bit strange.
Thanks in advance.

A:

The query parser interprets your query as 
    indexType | 2013-06-26T18
    defaultSearchField | 30
    defaultSearchField | 00Z
    defaultSearchField | TO
    defaultSearchField | NOW

try instead
indexType:[2013-06-26T18:30:00Z TO NOW]

more on Solr query syntax here.  

