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 Furkan KAMACI <fu...@gmail.com> on 2013/04/26 15:08:47 UTC
uniqueKey required false for multivalued id when indexing rich documents
I am new to Solr and try to index rich files. I have defined that at my
schema:
<field name="id" type="string" indexed="true" stored="true" required="true"
multiValued="false" />
and there is a line at my schema:
<uniqueKey>id</uniqueKey>
should I make it like that:
<uniqueKey required="false"></uniqueKey>
for my purpose?
Re: uniqueKey required false for multivalued id when indexing rich documents
Posted by Furkan KAMACI <fu...@gmail.com>.
Ok, thanks for the answer.
2013/4/26 Gora Mohanty <go...@mimirtech.com>
> On 26 April 2013 18:38, Furkan KAMACI <fu...@gmail.com> wrote:
> > I am new to Solr and try to index rich files. I have defined that at my
> > schema:
> [...]
> > <uniqueKey required="false"></uniqueKey>
>
> This will not work: Please see http://wiki.apache.org/solr/UniqueKey
> for different use cases for the uniqueKey.
>
> For documents, I usually use the document name, or some segment
> of the filesystem path as the uniqueKey as that is automatically
> guaranteed to be unique.
>
> Regards,
> Gora
>
Re: uniqueKey required false for multivalued id when indexing rich documents
Posted by Gora Mohanty <go...@mimirtech.com>.
On 26 April 2013 18:38, Furkan KAMACI <fu...@gmail.com> wrote:
> I am new to Solr and try to index rich files. I have defined that at my
> schema:
[...]
> <uniqueKey required="false"></uniqueKey>
This will not work: Please see http://wiki.apache.org/solr/UniqueKey
for different use cases for the uniqueKey.
For documents, I usually use the document name, or some segment
of the filesystem path as the uniqueKey as that is automatically
guaranteed to be unique.
Regards,
Gora