Github user ijokarumawak commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2199#discussion_r145416024
--- Diff:
nifi-nar-bundles/nifi-solr-bundle/nifi-solr-processors/src/test/resources/solr/testCollection/conf/schema.xml
---
@@ -16,6 +16,16 @@
<field name="marks" type="int" indexed="true" stored="true" />
<field name="test" type="string" indexed="true" stored="true" />
<field name="subject" type="string" indexed="true" stored="true" />
+
<field name="created" type="date" indexed="true" stored="true" />
+ <field name="id" type="string" indexed="true" stored="true" />
+ <field name="double_single" type="double" indexed="true" stored="true"
/>
+ <field name="integer_single" type="int" indexed="true" stored="true" />
+ <field name="integer_multi" type="int" indexed="true" stored="true"
multiValued="true"/>
+ <field name="string_single" type="string" indexed="true" stored="true"
/>
+ <field name="string_multi" type="string" indexed="true" stored="true"
multiValued="true"/>
+
+ <uniqueKey>id</uniqueKey>
--- End diff --
I agree with that, most indices have unique key. But just asked it because
it is not mandatory to have an unique key according to [Solr
documentation](https://wiki.apache.org/solr/SchemaXml#The_Unique_Key_Field).
Then I prefer to state that unique key is required for this processor to work
properly in NiFi documentation.
---