lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: Restriction on type of uniqueKey field?
Date Tue, 01 Jul 2014 11:05:54 GMT
No, you definitely can have an int or long uniqueKey. A lot of Solr's tests
use such a uniqueKey. See
solr/core/src/test-files/solr/collection1/conf/schema.xml


On Tue, Jul 1, 2014 at 3:20 PM, Alexandre Rafalovitch <arafalov@gmail.com>
wrote:

> Hello,
>
> I remember reading somewhere that id field (uniqueKey) must be String.
> But I cannot find the definitive confirmation, just that it should be
> non-analyzed.
>
> Can I use a single-valued TrieLongField type, with precision set to 0?
> Or am I going to hit issues?
>
> Regards,
>    Alex.
> Personal website: http://www.outerthoughts.com/
> Current project: http://www.solr-start.com/ - Accelerating your Solr
> proficiency
>



-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message