Legacy mapping of Solr types
Mapping for DataStax Enterprise 3.0.x and earlier clusters.
DataStax Enterprise 3.0.x and earlier use the legacy type mapping by default.
Solr Type | Cassandra Validator |
---|---|
TextField | UTF8Type |
StrField | UTF8Type |
LongField | LongType |
IntField | Int32Type |
FloatField | FloatType |
DoubleField | DoubleType |
DateField | UTF8Type |
ByteField | BytesType |
BinaryField | BytesType |
BoolField | UTF8Type |
UUIDField | UUIDType |
TrieDateField | UTF8Type |
TrieDoubleField | UTF8Type |
TrieField | UTF8Type |
TrieFloatField | UTF8Type |
TrieIntField | UTF8Type |
TrieLongField | UTF8Type |
All Others | UTF8Type |
If you use legacy type mappings, the solr schema needs to define the unique key as a string.