Return-Path: X-Original-To: apmail-lucene-general-archive@www.apache.org Delivered-To: apmail-lucene-general-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7F18D826 for ; Thu, 25 Oct 2012 18:13:31 +0000 (UTC) Received: (qmail 40696 invoked by uid 500); 25 Oct 2012 18:13:31 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 40551 invoked by uid 500); 25 Oct 2012 18:13:31 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 40543 invoked by uid 99); 25 Oct 2012 18:13:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 18:13:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [66.111.4.28] (HELO out4-smtp.messagingengine.com) (66.111.4.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 18:13:24 +0000 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id E2509208E9 for ; Thu, 25 Oct 2012 14:13:03 -0400 (EDT) Received: from web1.nyi.mail.srv.osa ([10.202.2.211]) by compute5.internal (MEProxy); Thu, 25 Oct 2012 14:13:03 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=/wrG5gbKCoj5S88Tt6EMxDL82rE=; b=gRb P29TuZwqYybNaplkKpxrjGqtzkhax+LNNG+FN7SuRVBAys06fLOd0oXeYe/HOkGa BSQV3i6ae9HN60rktJhiWfjy3zzPxVPwnm/sv2DDXodfft8oN51qCKUlML/7v70M qiwCCH0Y1TJXFwpMGf4q7i5J90VG7ESpMSyNbZa0= Received: by web1.nyi.mail.srv.osa (Postfix, from userid 99) id AA734A0014D; Thu, 25 Oct 2012 14:13:03 -0400 (EDT) Message-Id: <1351188783.2787.140661145432329.6E9D02B3@webmail.messagingengine.com> X-Sasl-Enc: Meaq0ahUz8Mc1RT93uXdhTcSm0L3znllLFgitGvfE0+D 1351188783 From: Upayavira To: general@lucene.apache.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: References: Subject: Re: Search Documents by Scored Tags? Date: Thu, 25 Oct 2012 19:13:03 +0100 X-Virus-Checked: Checked by ClamAV on apache.org In Solr syntax: entertainment tv sports entertainment That way: category(football tv) would do as you require, and would boost football above TV. That is - use index time boosts on your fields when you add them. Upayavira On Thu, Oct 25, 2012, at 06:16 PM, Paul Jungwirth wrote: > Hello, > > I have documents with various tags, and each tag has a numeric score, > so one document might be tagged "sports:20, entertainment:5, > football:10", and another "entertainment:8, tv:4". I'd like to let > people search by one or more tags, e.g. "football tv", and have the > results sorted with higher-scored tags first. I thought I could do > this by adding a separate Field for each tag (all named "tag" or > whatever), and then boosting the fields according to their score. Does > that seem like a good approach, or is there some cleaner way? I've > been reading the Lucene in Action book and looking through the online > docs, but I haven't found this usage scenario anywhere. > > Thanks, > Paul > > -- > _________________________________ > Pulchritudo splendor veritatis.