On Tue, Jul 14, 2009 at 10:30 PM, Nick Dimiduk <ndimi...@gmail.com> wrote:
> I do, but you raise an interesting point. I had named the field > incorrectly. > I'm a little puzzled as to why individual search worked with the broken > field name, but now all is well! > > An individual Solr uses uniqueKey only for replacing documents during indexing. During a search the uniqueKey is used only for associating certain pieces of information with documents e.g. highlighting info is written in the response per uniqueKey. Solr will complain only if you don't specify a uniqueKey during indexing. If you forgot to include uniqueKeys in some documents, changed to schema to add a uniqueKey and then didn't reindex the whole bunch, there will be some documents in the index without a value in the unique key field. In such a case, if you use distributed search, it will blow up because it expects all documents to have a value for the uniqueKey field. These values are used to merge responses from the shards. -- Regards, Shalin Shekhar Mangar.