Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 98351 invoked from network); 6 Mar 2010 10:21:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Mar 2010 10:21:43 -0000 Received: (qmail 18144 invoked by uid 500); 6 Mar 2010 10:21:25 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 17921 invoked by uid 500); 6 Mar 2010 10:21:24 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 17913 invoked by uid 99); 6 Mar 2010 10:21:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Mar 2010 10:21:24 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erik.hatcher@gmail.com designates 209.85.212.48 as permitted sender) Received: from [209.85.212.48] (HELO mail-vw0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Mar 2010 10:21:15 +0000 Received: by vws8 with SMTP id 8so1852944vws.35 for ; Sat, 06 Mar 2010 02:20:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=XJ59fmxTStc6Odtn2bY84je0108GUDbqHjqp3p99V9E=; b=Z+JPDib4UFjKr9147WbRPFyY1bVFMmp3tmbs8PpLPdKUsBff1DLlpalZ9RiLjCw6aE YRDO0nUZyeTTcaa7b4h5/wM2lhmaK73FvLCIbFgD2sbZAxVU82hCkzAnYy8aGtwj8CYY a1fTp5fYo6vZvTmtavmNAj1/UnDDZAuVhduZo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=JQGl58cbnE751/hILJiAv1eHPbcQwey7/Qe+S6LYwtTkUaaFj5F7lXfQxd23bCZeNO kHivq0WgRTgbP64FRK0NmxkcCMXJlmLAHPboAN74b74AHEkTdgY0CEsZX2IcRxyX62xP lk4eZjWgzGpVR3JjdFrCpO6JrctiZKN3O+eHI= Received: by 10.220.89.83 with SMTP id d19mr1384450vcm.209.1267870854172; Sat, 06 Mar 2010 02:20:54 -0800 (PST) Received: from [10.0.1.69] (c-71-63-2-238.hsd1.va.comcast.net [71.63.2.238]) by mx.google.com with ESMTPS id 37sm25855782vws.2.2010.03.06.02.20.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Mar 2010 02:20:52 -0800 (PST) Message-Id: <9A37ABFA-30A0-4C50-86B3-6A17FE7E1095@gmail.com> From: Erik Hatcher To: solr-user@lucene.apache.org In-Reply-To: <7d33d7301003050856w42af1e5cv288bcbf3aaeb9e70@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: how to boost first token Date: Sat, 6 Mar 2010 05:20:49 -0500 References: <7d33d7301003050856w42af1e5cv288bcbf3aaeb9e70@mail.gmail.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org I don't think there's a way to do this out of the box, but if there =20 were a SpanFirstQuery parser plugin, it could be used as a dismax =20 boosting query (bq) or as an optional _query_ expression. Erik On Mar 5, 2010, at 11:56 AM, =D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9 = =D0=9A=D0=B0=D1=88=D0=B8=D0=BD wrote: > I have some documents in Solr index like this > > > toyota > > > shock front > > > > > > toyota > > > front shock > > > > If I query with 'shock' phrase the result is not sorted and may be > -------------- > shock front > front shock > -------------- > or > -------------- > front shock > shock front > -------------- > Can i boost document with name "shock front" by query phrase 'shock' > and boost document with name "front shock" by query phrase 'front' ?