Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 6881 invoked from network); 16 Apr 2009 07:13:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 07:13:12 -0000 Received: (qmail 54485 invoked by uid 500); 16 Apr 2009 07:13:11 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 54461 invoked by uid 500); 16 Apr 2009 07:13:11 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 54450 invoked by uid 99); 16 Apr 2009 07:13:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 07:13:11 +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: domain of mreutegg@day.com designates 207.126.148.183 as permitted sender) Received: from [207.126.148.183] (HELO eu3sys201aog003.obsmtp.com) (207.126.148.183) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 16 Apr 2009 07:13:02 +0000 Received: from source ([209.85.218.159]) by eu3sys201aob003.postini.com ([207.126.154.11]) with SMTP ID DSNKSebaakhoON/BiCRbFI4Ang2hQ4nWhp2a@postini.com; Thu, 16 Apr 2009 07:12:42 UTC Received: by bwz3 with SMTP id 3so281584bwz.6 for ; Thu, 16 Apr 2009 00:12:41 -0700 (PDT) MIME-Version: 1.0 Sender: mreutegg@day.com Received: by 10.223.108.210 with SMTP id g18mr313682fap.38.1239865961821; Thu, 16 Apr 2009 00:12:41 -0700 (PDT) In-Reply-To: <4460.95.69.42.222.1239841920.squirrel@gate.criticalsoftware.com> References: <4460.95.69.42.222.1239841920.squirrel@gate.criticalsoftware.com> Date: Thu, 16 Apr 2009 09:12:41 +0200 X-Google-Sender-Auth: dc5fd645cc0bd4d2 Message-ID: Subject: Re: boost attribute not working? From: Marcel Reutegger To: users Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, 2009/4/16 Paulo Formoso Silva : > =A0- I'm doing the query like this: "SELECT * FROM nt:resource WHERE > CONTAINS(., 'test') =A0ORDER BY jcr:score ASC" > > Any idea why the boost doesn't work? Is there any tips how to make boost > work? the boost only comes into play if you do a contains on that property. I.e. you need to run the following query: SELECT * FROM nt:resource WHERE CONTAINS(., 'test') OR CONTAINS(jcr:title, 'test') OR CONTAINS(jcr:keywords, 'test') ORDER BY jcr:score ASC and probably sort DESC ;) higher score values mean better match. regards marcel