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" multiValued="true"/> <copyField source="id" dest="key"/> <copyField source="table" dest="key"/> <uniqueKey>key</uniqueKey> Is this a reasonable configuration? Kind regards, Nick Snels On 5/22/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
On 5/22/06, Nick Snels <[EMAIL PROTECTED]> 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