Re: Using pint field as uniqueKey

2017-10-17 Thread Amrit Sarkar
https://issues.apache.org/jira/browse/SOLR-10829: IndexSchema should enforce that uniqueKey field must not be points based The description tells the real reason. Amrit Sarkar Search Engineer Lucidworks, Inc. 415-589-9269 www.lucidworks.com Twitter http://twitter.com/lucidworks LinkedIn: https://w

Re: Using pint field as uniqueKey

2017-10-17 Thread alessandro.benedetti
In addition to what Amrit correctly stated, if you need to search on your id, especially range queries, I recommend to use a copy field and leave the id field, almost as default. Cheers - --- Alessandro Benedetti Search Consultant, R&D Software Engineer, Director Sease Ltd. - ww

Re: Using pint field as uniqueKey

2017-10-17 Thread Amrit Sarkar
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

Using pint field as uniqueKey

2017-10-17 Thread Michael Kondratiev
I'm trying to set up uniqueKey ( what is integer) like that: id 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.