Return-Path: Delivered-To: apmail-lucene-ruby-dev-archive@www.apache.org Received: (qmail 78230 invoked from network); 17 Feb 2007 02:06:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2007 02:06:57 -0000 Received: (qmail 57847 invoked by uid 500); 17 Feb 2007 02:07:05 -0000 Delivered-To: apmail-lucene-ruby-dev-archive@lucene.apache.org Received: (qmail 57830 invoked by uid 500); 17 Feb 2007 02:07:05 -0000 Mailing-List: contact ruby-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ruby-dev@lucene.apache.org Delivered-To: mailing list ruby-dev@lucene.apache.org Received: (qmail 57819 invoked by uid 99); 17 Feb 2007 02:07:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2007 18:07:05 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.116.38.223] (HELO rectangular.com) (68.116.38.223) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2007 18:06:54 -0800 Received: from [67.189.26.9] (helo=[10.0.1.3]) by rectangular.com with esmtpa (Exim 4.44) id 1HIFSp-000CPj-TX for ruby-dev@lucene.apache.org; Fri, 16 Feb 2007 18:38:16 -0800 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: <4D497953-E489-4716-90BD-59A1B9AA6A93@rectangular.com> <209FF4FD-3F24-4C2A-9FDB-B72FBE9D680D@ehatchersolutions.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marvin Humphrey Subject: Re: NO_NORMS and TOKENIZED? Date: Fri, 16 Feb 2007 18:06:33 -0800 To: ruby-dev@lucene.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 16, 2007, at 5:57 PM, Yonik Seeley wrote: >> Do we really need any >> other semantics at the solrb level, or does a Hash convey it all? > > boosts? $index_writer->add_doc( \%doc, boost => $boost ); In KS, the add_doc method takes a hashref as its first argument, then additional labeled parameters, of which there is currently only one: boost. Field boosts are set as part of the FieldSpec subclass. package MySchema::title use base qw( KinoSearch::Schema::FieldSpec ); sub boost { 2.5 } It's not possible to boost individual fields within documents. (: But it is possible to boost individual Tokens, since KS has partially implemented the "flexible indexing" postings format. :) Marvin Humphrey Rectangular Research http://www.rectangular.com/