I'm a little lost by your whole question ... 1) if there is a <uniqueKey> delcaration in your schema, then any <add><doc> *MUST* have that field ... regardless of what overwrite or allowDup options are specified.
2) overwrite and allowDups options *only* make sense if there is a <uniqueKey> field defined in the schema ... i there is no uniqueKey those options should be ignored (or trigger an error ... but i'd vote for ignoring so that client libraries can be configured to set them to one thing by defualt without needing to know what type of schema the user has) : Date: Mon, 26 Feb 2007 12:49:06 -0800 : From: Ryan McKinley <[EMAIL PROTECTED]> : Reply-To: solr-dev@lucene.apache.org : To: solr-dev@lucene.apache.org : Subject: Re: [jira] Commented: (SOLR-172) add doc without uniqueKey field : causes NPE : : Thinking about this a bit more (I should do that *before* hitting the : send button!) : : scratch the required="true" suggestion. If you send a request with : add.overwriteX and no id, it gives you an error (#2) if you want to : get behavior #1, you should have to send add.allowDups = true : -Hoss