By looking into the code, if (uniqueKeyField.getType().isPointField()) { String msg = UNIQUE_KEY + " field ("+uniqueKeyFieldName+ ") can not be configured to use a Points based FieldType: " + uniqueKeyField.getType().getTypeName(); log.error(msg); throw new SolrException(ErrorCode.SERVER_ERROR, msg); }
Not sure the reason behind; someone else can weigh in here, but PointFields are not allowed to be unique keys, probably because how they are structures and stored on disk. Amrit Sarkar Search Engineer Lucidworks, Inc. 415-589-9269 www.lucidworks.com Twitter http://twitter.com/lucidworks LinkedIn: https://www.linkedin.com/in/sarkaramrit2 On Tue, Oct 17, 2017 at 1:49 PM, Michael Kondratiev < kondratiev.mich...@gmail.com> wrote: > I'm trying to set up uniqueKey ( what is integer) like that: > > > <field name="id" type=“pint" indexed="true" stored="true" > required="true" multiValued="false"/> > <uniqueKey>id</uniqueKey> > > > But when I upload configuration into solr i see following error: > > > > uniqueKey field (id) can not be configured to use a Points based > FieldType: pint > > If i set type=“string” everything seems to be ok.