lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Snels" <>
Subject Re: Multiple uniqueKey fields
Date Mon, 22 May 2006 18:42:04 GMT
Thanks for the answer. I don't quit get how to make a compound key (but I'll
give it a try). I have multiple tables with an id, but if I put all of them
in a Solr index, the id isn't a unique field. So I thought about also
storring the table name, which should make it unique.

<field name="id" type="string" indexed="true" stored="true"/>
<field name="table" type="string" indexed="true" stored="true"/>
<field name="key" type="string" indexed="true" stored="true"
<copyField source="id" dest="key"/>
<copyField source="table" dest="key"/>


Is this a reasonable configuration?

Kind regards,

Nick Snels

On 5/22/06, Yonik Seeley <> wrote:
> On 5/22/06, Nick Snels <> wrote:
> > is it possible to define multiple uniqueKey fields in schema.xml?
> Not currently, as one can normally get by with a single uniqueKey field.
> If you have multiple unique key fields on each document you can make a
> compound key.
> If you have multiple document types, you could make a docType field if
> you need it... sometimes you don't if you just different field names
> for the different document types.
> -Yonik

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message