I'm trying to use Id field as Long and getting this error:
ERROR: Error CREATEing SolrCore 'brands': Unable to create core
[brands] Caused by: uniqueKey field (id) can not be configured to use a
Points based FieldType: plong
Here is my schema.xml:
<?xml version="1.0" encoding="UTF-8"?>
<schema name="brands-config" version="1.6">
<uniqueKey>id</uniqueKey>
<fieldType name="plong" class="solr.LongPointField" docValues="true"/>
<fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true"/>
<field name="name" type="string"/>
<field name="id" type="plong" multiValued="false" indexed="true" required="true" stored="true"/>
</schema>
My solrconfig.xml is basic one - only removed the part mentioned in this thread but it didn't help.
Is there any way to make my id field type long? I need it this way to avoid too much mapping.
As described here you can't use a point based field as uniqueKey.
Instead, you could use the string
type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With