Re: unique so that if that combination exists in index it will return an error

2008-12-13 Thread KishoreVeleti CoreObjects
Thanks Erik for your reply. But I have another question. Supose say I already have my database primary key as uniqueId in SOLR. Besides uniqueKey "Id" field I have 3 more fields say field1, field2, field3. I want to make sure that in SOLR I will have only one document where field1, field2, field

Re: unique so that if that combination exists in index it will return an error

2008-12-13 Thread Erik Hatcher
On Dec 13, 2008, at 12:10 PM, Kishore Veleti CoreObject wrote: In Lucene is there a way (like in databases) to define a combination of 3 fields as unique so that if that combination exists in index it will return an error and not add another document with that combination again? No, you'll