Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A031DBDD for ; Wed, 20 Jun 2012 11:05:56 +0000 (UTC) Received: (qmail 18891 invoked by uid 500); 20 Jun 2012 11:05:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 18841 invoked by uid 500); 20 Jun 2012 11:05:54 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 18802 invoked by uid 99); 20 Jun 2012 11:05:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 11:05:52 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.180] (HELO mail-we0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 11:05:45 +0000 Received: by weyt11 with SMTP id t11so6042655wey.11 for ; Wed, 20 Jun 2012 04:05:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:subject:x-mailer:mime-version:content-type :x-gm-message-state; bh=kA8RahpisNEgMsL9gZlW15Ep3xhFTVrAfqmfT/Vsoqs=; b=DfF7f8Z9VeKyc2+MZTAevuaPoszx5dwVewFM5QSG7ok+m/RWYtZbMxql6r4aIwOlyV 7+CeaSwR+cszbWtOgFM226g9fT4uMpNeZdT8rtSc68qXdrBcKfCABC8p2pjVJdRScBvx sX0TcU353PXe4WmdTJThNtYYpOhJho57rxizOcdHAX3KxBVG4RU9J9R4Cn7buNBSw/pF /uVuZgbUzpxkTv4OUTlesiHFrrQhpRFtHL46E2a1CfAgniTkXGPqfW6Wm8FCO0SAZQ+y 3mF6K9VOYy2tR8fbAgZdt357Cr2xCijmPZ2l1e7zjSTchA1zXKGEPfJuTkulUhbWqd1k V8+A== Received: by 10.180.14.165 with SMTP id q5mr11157461wic.8.1340190323320; Wed, 20 Jun 2012 04:05:23 -0700 (PDT) Received: from [10.10.10.57] (office.chillibean.net. [193.203.81.66]) by mx.google.com with ESMTPS id gb9sm38421191wib.8.2012.06.20.04.05.21 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jun 2012 04:05:22 -0700 (PDT) Date: Wed, 20 Jun 2012 12:05:20 +0100 From: Rory Franklin To: user@couchdb.apache.org Message-ID: <0A30A158CD7D43E7BAAFD2B93A6B7BB7@chillibean.tv> Subject: CouchDB Lucene boost problem X-Mailer: sparrow 1.6.1 (build 1081.52) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4fe1ae70_15014acb_164d6" X-Gm-Message-State: ALoCoQlEyVrCirjJE/KM0+IiSf8dq63e7rWH+E+RhNL5JUqdGTIWb9GCsX5T9GGtk866k5kWNtWD X-Virus-Checked: Checked by ClamAV on apache.org --4fe1ae70_15014acb_164d6 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, We've got a machine with couchdb-lucene 0.9 on it and various machines that use 0.7 and there seems to be a discrepancy between the two versions. In one of our indexes we are boosting a particular field so that it comes above others in search results (we are searching for an ID and linked ID's in other documents, but want the document that matches the ID directly to return above the linked documents), and the definition looks like this: ret.add(doc.entry_human_id, {'field':'sort_entry_human_id', 'type' : 'int', 'boost' : 1.5}) On 0.7 this works absolutely fine, but on 0.9 we are seeing this error: 2012-06-20 10:48:04,251 WARN [lia_development] Exiting due to exception. java.lang.UnsupportedOperationException: You cannot set an index-time boost: norms are omitted for field 'sort_entry_human_id' at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:85) at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:276) at org.apache.lucene.index.DocumentsWriter.updateDocuments(DocumentsWriter.java:852) at org.apache.lucene.index.IndexWriter.updateDocuments(IndexWriter.java:2167) at com.github.rnewson.couchdb.lucene.DatabaseIndexer.handleResponse(DatabaseIndexer.java:393) at com.github.rnewson.couchdb.lucene.DatabaseIndexer.handleResponse(DatabaseIndexer.java:83) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:735) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:709) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:700) at com.github.rnewson.couchdb.lucene.DatabaseIndexer.run(DatabaseIndexer.java:473) at java.lang.Thread.run(Thread.java:680) Removing the boost and restarting couchdb-lucene resolves the issue, I'm just curious as to what the problem may be? Thanks, Rory --4fe1ae70_15014acb_164d6--