Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 90763 invoked from network); 3 May 2005 23:42:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2005 23:42:23 -0000 Received: (qmail 83080 invoked by uid 500); 3 May 2005 23:43:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 82969 invoked by uid 500); 3 May 2005 23:43:27 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 82910 invoked by uid 99); 3 May 2005 23:43:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 16:43:26 -0700 Received: by ehatchersolutions.com (Postfix, from userid 504) id 7445E13E2006; Tue, 3 May 2005 19:41:34 -0400 (EDT) Received: from [192.168.1.101] (va-chrvlle-cad1-bdgrp1-4b-b-169.chvlva.adelphia.net [68.169.41.169]) by ehatchersolutions.com (Postfix) with ESMTP id 5246313E2005 for ; Tue, 3 May 2005 19:40:24 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v728) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: PerFieldSimilarity Date: Tue, 3 May 2005 19:40:21 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.728) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00, RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL autolearn=no version=3.0.1 X-Spam-Level: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On May 3, 2005, at 5:57 PM, Robichaud, Jean-Philippe wrote: > Hi Everyone, > > I've been searching the archive without success to answer this one: > is it > possible to specify one similarity class per field, just like we > can do with > an analyzer ? I know I can change the similarity of the searcher, > but that > restrict me to break some complex queries into different chunk and > sum the > score "by hand" rather than having the fast internal implementation > do the > job. What I would really like is to have something like > PerFieldAnalyzerWrapper but for similarity... Is this possible ? I'm interested in what your use case is in desiring this. What factors would you vary per field? The only factor that seems to make sense is lengthNorm which is computed at indexing time and does allow per-field tweaking. A custom Similarity subclass could be used to affect the lengthNorm based on the field name parameter. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org