سؤال

I have to index a file that doesn't have any field named key. I know there is a concept of Unique key in Solr. Can any one help me in the same. I have followed the following steps:-

  1. Changing the Unique Key to some other field (say name)
  2. Changing required="true" to required="false" for field id

Still I am not able to index a file which doesn't have id.

هل كانت مفيدة؟

المحلول

In schema.xml you can specify which key is unique amongst your documents. Ref

Also, you may want to read through this reference, which describes various use cases around Unique Key.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top