Add UUID on the schema

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Add UUID on the schema

msaunier
Hello,

 

I use SolrCloud 7.0 and I don't have find how to add an UID field on the
schema. I have add UUIDField type and add a field but it do not work.  

 

 

  {

    "name": "uid",

    "class": "solr.UUIDField",

    "indexed": true,

    "stored": true

  },

 

Thanks for your help.

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Add UUID on the schema

nandan_solr
Here is some basic question based on that answers vary.
1) Are you going to use UUID column as unique column.
2) what do you with that column.

Process :-
Column is :-

<fieldType name="uuid" class="solr.UUIDField" indexed="true" />

   For Add this :-

<field name="id" type="uuid" indexed="true" stored="true"
default="NEW" multiValued="false"/>

And then need to add in uniqueid section.

<uniqueKey>id</uniqueKey>



On Thu, May 17, 2018 at 5:00 PM, msaunier <[hidden email]> wrote:

> Hello,
>
>
>
> I use SolrCloud 7.0 and I don't have find how to add an UID field on the
> schema. I have add UUIDField type and add a field but it do not work.
>
>
>
>
>
>   {
>
>     "name": "uid",
>
>     "class": "solr.UUIDField",
>
>     "indexed": true,
>
>     "stored": true
>
>   },
>
>
>
> Thanks for your help.
>
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Add UUID on the schema

Erick Erickson
I strongly advise downloading the full Solr reference guide, searching
there first often gets you answers quickly, in this case

At the top of every on-line version, there's an "other formats" link
that has an "archived PDFs" link that will take you to a page that
allows you to download the version specific to your release way back
to about 4.10, here it is for convenience:
https://archive.apache.org/dist/lucene/solr/ref-guide/

If you search for "UUID" you'll get a note about how SolrCloud needs
UUIDUpdateProcessorFactory to work correctly in SolrCloud mode.

Best,
Erick

On Thu, May 17, 2018 at 5:11 AM, @Nandan@
<[hidden email]> wrote:

> Here is some basic question based on that answers vary.
> 1) Are you going to use UUID column as unique column.
> 2) what do you with that column.
>
> Process :-
> Column is :-
>
> <fieldType name="uuid" class="solr.UUIDField" indexed="true" />
>
>    For Add this :-
>
> <field name="id" type="uuid" indexed="true" stored="true"
> default="NEW" multiValued="false"/>
>
> And then need to add in uniqueid section.
>
> <uniqueKey>id</uniqueKey>
>
>
>
> On Thu, May 17, 2018 at 5:00 PM, msaunier <[hidden email]> wrote:
>
>> Hello,
>>
>>
>>
>> I use SolrCloud 7.0 and I don't have find how to add an UID field on the
>> schema. I have add UUIDField type and add a field but it do not work.
>>
>>
>>
>>
>>
>>   {
>>
>>     "name": "uid",
>>
>>     "class": "solr.UUIDField",
>>
>>     "indexed": true,
>>
>>     "stored": true
>>
>>   },
>>
>>
>>
>> Thanks for your help.
>>
>>
>>
>>
>>
>>