Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 7716 invoked from network); 14 Feb 2010 22:34:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Feb 2010 22:34:11 -0000 Received: (qmail 54336 invoked by uid 500); 14 Feb 2010 22:34:10 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 54275 invoked by uid 500); 14 Feb 2010 22:34:10 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 54265 invoked by uid 99); 14 Feb 2010 22:34:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Feb 2010 22:34:10 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.219.218 as permitted sender) Received: from [209.85.219.218] (HELO mail-ew0-f218.google.com) (209.85.219.218) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Feb 2010 22:34:03 +0000 Received: by ewy10 with SMTP id 10so2930042ewy.11 for ; Sun, 14 Feb 2010 14:33:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=WF4rcKj7T2LhAcVqNgJFMiQZJIQvdhJrB7/711zr5+k=; b=Dv19acMMEzhAGReZD/4X2NQ7L2A08OGXRKx6s8+mYCqEqbPRVhgObme6F3bSxvOnPJ oZ99qD2ZvmmZ6pJgQs8KQ4KWHrZ2mmypaKDu4vfPuwe3MRk53YP3hsqc4bayF/l3lU6S kHEYBUisjb/f0JaBf+KSvE0MEx4oVxVE7UIvk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VRytKTcC7zQ+M+841By4QcdfKSNgbbuq/uyT+/88ZLnqJ2S4/t0uaNHBODjtjAdfjG vvf8LCYXa+UGQ+qV2mrzRMnTk80HLsybqJiupp3rqPcYiFEM8u7dgZOGZcS2KY3Riqi6 vE4Q5yr4xNP8yI+MLvCZvtcFgUGXPOWwhOFYc= MIME-Version: 1.0 Received: by 10.216.86.82 with SMTP id v60mr213655wee.180.1266186822286; Sun, 14 Feb 2010 14:33:42 -0800 (PST) Date: Sun, 14 Feb 2010 17:33:42 -0500 Message-ID: <359a92831002141433y234f8d3cl680b2159a7a36b1c@mail.gmail.com> Subject: admin page errors if UniqueKey not defined in schema From: Erick Erickson To: solr-dev@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e6d77e59c2fee4047f9717f9 --0016e6d77e59c2fee4047f9717f9 Content-Type: text/plain; charset=ISO-8859-1 This may be related to SOLR-1742 and/or SOLR-1743. I have a minimal schema file, 4 fields and one copyfield. If UniqueKey isn't specified in the schema file, going to the admin page produces a "missing core name in path" error. I can't seem to add documents via Posting either. This is with a SOLR downloaded and compiled this morning (Sunday, 14-Feb). Does anyone have a clue about this or am I seeing things? Same thing happens with the 1.4 release. The *only* difference between success and failure is removing (or not) . Yet we state that the unique key isn't required at http://wiki.apache.org/solr/SchemaXml#The_Unique_Key_Field. And specifying required="false" doesn't seem to change things. To try to get this to a minimal set of things to look at, I deleted my index directory completely and saw the above, before indexing anything. If I leave UniqueKey in, the admin page shows up fine. Even with required="false" (both for field and UniqueKey), indexing a document via post fails with "...Status 400 - Document is missing uniqueKey field id

type Status report

message" Running under Tomcat on a Mac if it matters, Java 1.6 Erick Here's the (I believe) relevant portion of my schema file... id body --0016e6d77e59c2fee4047f9717f9--