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 <arafa...@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.