Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: (qmail 80525 invoked from network); 23 Oct 2009 01:25:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Oct 2009 01:25:10 -0000 Received: (qmail 42287 invoked by uid 500); 23 Oct 2009 01:25:10 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 42214 invoked by uid 500); 23 Oct 2009 01:25:10 -0000 Mailing-List: contact solr-commits-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-commits@lucene.apache.org Received: (qmail 42205 invoked by uid 99); 23 Oct 2009 01:25:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 01:25:10 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 01:25:08 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id DC7AA17D14 for ; Fri, 23 Oct 2009 01:24:46 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Fri, 23 Oct 2009 01:24:46 -0000 Message-ID: <20091023012446.16156.62586@eos.apache.org> Subject: =?utf-8?q?=5BSolr_Wiki=5D_Update_of_=22SolrRelevancyFAQ=22_by_YonikSeeley?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for chan= ge notification. The "SolrRelevancyFAQ" page has been changed by YonikSeeley. The comment on this change is: add boosting dismax example. http://wiki.apache.org/solr/SolrRelevancyFAQ?action=3Ddiff&rev1=3D15&rev2= =3D16 -------------------------------------------------- = Now the main "q" argument as well as the "dateboost" argument may be spec= ified as defaults in a search handler in solrconfig.xml, and clients would = only need to pass "qq", the user query. = + To boost another query type such as a dismax query, the value of the boos= t query is a full sub-query and hence can use the {!querytype} syntax. Alte= rnately, the defType param can be used in the boost local params to set the= default type to dismax. The other dismax parameters may be set as top lev= el parameters. + {{{ + http://localhost:8983/solr/select?q=3D{!boost b=3D$dateboost v=3D$qq defT= ype=3Ddismax}&dateboost=3Drecip(ms(NOW,manufacturedate_dt),3.16e-11,1,1)&qf= =3Dtext&pf=3Dtext&qq=3Dipod + }}} = =3D=3D How do I give a very low boost to documents that match my query = =3D=3D In general the problem is that a "low" boost is still a boost, it can onl= y improve the score of documents that match. One way to fake a "negative bo= ost" is to give a high boost to everything that does *not* match. For examp= le: