Quantcast
Viewing all articles
Browse latest Browse all 387

RadishRabbit on "solr datefield still uses utf8 cassandra validator in new 3.1.1 mapping"

Symptom:

dse 3.1.1

Create a solr schema with a date file w/o creating a prior cassandra columnfamily:
<fieldType name="date" class="solr.DateField"/>
<field name="date" type="date" indexed="true"/>

with the following in solrconfig:
<dseTypeMappingVersion>1</dseTypeMappingVersion>

add a document through solr
{'date': '1999-01-01T00:00:00z'}

do a query in solr, you will get the error:
"Unable to parse the date"

A quick look into cassandra's system.schema_column table reviews that the date column actually still has the validator type of utf8

repeating the same procedure <dseTypeMappingVersion>0</dseTypeMappingVersion> in solrconfig does not have the problem.


Viewing all articles
Browse latest Browse all 387

Trending Articles