Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 53248 invoked from network); 15 May 2010 21:18:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 May 2010 21:18:26 -0000 Received: (qmail 55748 invoked by uid 500); 15 May 2010 21:18:24 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 55566 invoked by uid 500); 15 May 2010 21:18:24 -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 55558 invoked by uid 99); 15 May 2010 21:18:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 May 2010 21:18:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [134.96.191.147] (HELO smtp.dfki.de) (134.96.191.147) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 May 2010 21:18:14 +0000 Received: from smtp.dfki.de (localhost [127.0.0.1]) by imss.7 (Postfix) with ESMTP id 616E3316EA for ; Sat, 15 May 2010 23:17:52 +0200 (CEST) Received: from mail.dfki.de (lnv-104.sb.dfki.de [134.96.191.146]) by smtp.dfki.de (Postfix) with ESMTP id 4C276313CB for ; Sat, 15 May 2010 23:17:52 +0200 (CEST) Received: from [IPv6:::1] (dave.dfki.uni-sb.de [134.96.184.220]) by mail.dfki.de (Postfix) with ESMTP id 2C5E431161 for ; Sat, 15 May 2010 23:17:52 +0200 (CEST) Message-Id: From: Paul Libbrecht To: java-user@lucene.apache.org In-Reply-To: <469705.48901.qm@web29016.mail.ird.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: best way to interest two queries? Date: Sat, 15 May 2010 23:17:51 +0200 References: <9D9D39B8-C2C7-4FA7-B567-D1B06DA46B69@activemath.org> <9A525C49-5E48-47F2-9FB1-60AF97883547@activemath.org> <55241.46827.qm@web29008.mail.ird.yahoo.com> <057D5149-84FE-4B5B-B44E-D6E2FCDAB08C@activemath.org> <469705.48901.qm@web29016.mail.ird.yahoo.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org Le 12-mai-10 =E0 10:55, mark harwood a =E9crit : > > >>> two terminology questions: > >>> - is multiplier in the mail mentioned there the same as boost? > > This factor controls how many decimal places precision is retained =20 > in the adjusted scores. Pick to low a multiplier and scores that are =20= > only differentiated by a very small value will appear equal. Pick =20 > too high a multiplier and you start to lose the most significant =20 > parts of the score. This trade-off is summarised here for various =20 > settings of "multiplier": sorry, had overseen. Yes, that seems realistic to me. > - I intended to use prefix and fuzzyqueries. I believe this is =20 > contradictory to this or? > > You can wrap any queries with this class - the only limitation is it =20= > hides all match info in a single byte encoded into the score which =20 > only allows for 8 bits or 8 match flags i.e. reports on max 8 =20 > clauses. You could try use > 8 bits encoded into the score but then =20= > you lose more score precision again (see above). I'm having an NPE with the query who's toString gives: QueryMatchMonitor (QueryMatchMonitor ((title-fr:segm~0.5 title-=20 phonetic-fr:SKM~0.5^0.8)) QueryMatchMonitor (((title-en:segm~0.5 title-=20= phonetic-en:SKM~0.5^0.8))^0.95) QueryMatchMonitor (((title-de:segm~0.5 =20= title-phonetic-de:SKM~0.5^0.8))^0.9025) QueryMatchMonitor (((title-=20 en:segm~0.5 title-phonetic-en:SKM~0.5^0.8))^0.85737497)) at java.lang.NullPointerException at org.apache.lucene.search.FlagRecordingQuery=20 $FlagRecordingQueryWeight.scorer(FlagRecordingQuery.java:104) at org.apache.lucene.search.BooleanQuery=20 $BooleanWeight.scorer(BooleanQuery.java:297) at org.apache.lucene.search.FlagCombiningQuery=20 $FlagCombiningQueryWeight.scorer(FlagCombiningQuery.java:100) at = org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:=20 246) at = org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:=20 173) at org.apache.lucene.search.Searcher.search(Searcher.java:181) at org.apache.lucene.search.Searcher.search(Searcher.java:191) (but note that I removed explain from my FlagCombiningQuery; what's =20 null is the delegateScorer). Any clue? paul= --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org