Thanks Yonik,

It works fine with a String.

How embarassing,  Somehow I managed to accidentally set _root_ to an int in
my schema. Don't know how I did it.

Tom



On Tue, Mar 4, 2014 at 11:56 AM, Yonik Seeley <[email protected]> wrote:

> On Tue, Mar 4, 2014 at 11:51 AM, Tom Burton-West <[email protected]>
> wrote:
> > We have been using strings for our uniqueKey field and discovered that
> Solr
> > Block-Join requires the uniqueKey field to be an int.   This is because
> the
> > magic field _root_ is required to be an int, and for children it gets
> > populated from the uniqueKey field of the parent record.
>
> Are you sure it doesn't work with String?  The example field has
> _root_ defined to be:
>
>    <field name="_root_" type="string" indexed="true" stored="false"/>
>
> -Yonik
> http://heliosearch.org - native off-heap filters and fieldcache for solr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to