Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 46604 invoked from network); 20 Nov 2008 21:42:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2008 21:42:57 -0000 Received: (qmail 15758 invoked by uid 500); 20 Nov 2008 21:43:03 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 15721 invoked by uid 500); 20 Nov 2008 21:43:03 -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 15710 invoked by uid 99); 20 Nov 2008 21:43:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2008 13:43:02 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of goksron@gmail.com designates 74.125.46.31 as permitted sender) Received: from [74.125.46.31] (HELO yw-out-2324.google.com) (74.125.46.31) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2008 21:41:39 +0000 Received: by yw-out-2324.google.com with SMTP id 3so294932ywj.5 for ; Thu, 20 Nov 2008 13:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:x-mimeole; bh=6YRSeYJA37I2Dz3PDsi941v9qswkk+/XJKl1I+sbSE4=; b=ttX5y80blrK24ewH9uYn3ZPtoElmdnuUO8MwIM7Jmi3YnZZSanI7mmuf5xyK1yh5vT U+kxE8zTMzpZow/TcmbNMhMGOTeHVTVLaduFB0vryXW1HvolCrphDI/JzOYJhhqHcxh7 CeHRwBxmYXeIe75X9SxG25TWJ0tICWDohfyV8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:x-mimeole; b=aDPIlYtenvUDQ8ZzXIOVKxY8XwLJKS9mXi2Bbc8O2cqbbUhLZMCUlJy6XVhEj0jt1k e13puMSj/1QJ6LCqjumZTYU5rPsLD13FHHGXMUZ3U4eRwx0YsTgQh0Jhn83SXW317yzn 891imypsDXmdib9wuWIqDQ03iSJiyUwYysKUw= Received: by 10.142.147.20 with SMTP id u20mr1341995wfd.313.1227217333888; Thu, 20 Nov 2008 13:42:13 -0800 (PST) Received: from madrid ([75.144.19.29]) by mx.google.com with ESMTPS id 27sm1508010wfa.9.2008.11.20.13.42.12 (version=SSLv3 cipher=RC4-MD5); Thu, 20 Nov 2008 13:42:13 -0800 (PST) From: "Lance Norskog" To: Subject: Boosting by field contents Date: Thu, 20 Nov 2008 13:42:11 -0800 Message-ID: <3A675336A5624A388CCC36A5A6830C57@madrid> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AclLWNhjV5HJuUYZTj+D9UBy/w2sWQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Checked: Checked by ClamAV on apache.org Is it possible to boost a document by the contents of a field? Given the query: text field:value I want to return all documents with 'text'. Documents where 'field = value' boosted over documents where 'field = some other value'. This query does it: (text field:value)^100 (text -field:value) Is there a simpler way? (I might have left out crucial AND/OR clauses, but you get the picture.) I don't remember much on this topic. Does it appear in the Lucene lists? Is there a Lucene feature or open issue? Thanks, Lance