You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by msaunier <ms...@citya.com> on 2018/05/17 09:00:05 UTC
Add UUID on the schema
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.
Re: Add UUID on the schema
Posted by Erick Erickson <er...@gmail.com>.
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@
<na...@gmail.com> 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 <ms...@citya.com> 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.
>>
>>
>>
>>
>>
>>
Re: Add UUID on the schema
Posted by "@Nandan@" <na...@gmail.com>.
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 <ms...@citya.com> 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.
>
>
>
>
>
>