Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 35638 invoked from network); 13 Dec 2008 08:23:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2008 08:23:21 -0000 Received: (qmail 90649 invoked by uid 500); 13 Dec 2008 08:23:33 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 90624 invoked by uid 500); 13 Dec 2008 08:23:33 -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 90613 invoked by uid 99); 13 Dec 2008 08:23:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Dec 2008 00:23:33 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Dec 2008 08:23:18 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LBPm5-0003o4-Uu for general@lucene.apache.org; Sat, 13 Dec 2008 00:22:57 -0800 Message-ID: <20988263.post@talk.nabble.com> Date: Sat, 13 Dec 2008 00:22:57 -0800 (PST) From: ayyanar To: general@lucene.apache.org Subject: Re: Newbie Question on - Multi valued Keyword field search In-Reply-To: <4C8E89CF-CF0E-4B3C-9C06-15C704C3CACC@ehatchersolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ayyanar.aswathaman@aspiresys.com References: <20987615.post@talk.nabble.com> <4C8E89CF-CF0E-4B3C-9C06-15C704C3CACC@ehatchersolutions.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Eric, I need to set the high boost for the value "Dirty" in the document 3 since i want the document 3 to come first. This is not field based boost since there are multiple values in the keyword field of a document. Iam aware we can do this by using payload concept, but i dont know how to do and there are no examples in the net. Please not that i will search only in the keyword field and i need to do the index time boosting. Thanks, Ayyanar Erik Hatcher wrote: > > What criteria defines that #3 comes first? There's lots of ways of > shifting documents around in the search results, boosting by field > (indexing or query time), boosting by document (index time), elevation > (a Solr feature), etc. > > Erik > > On Dec 13, 2008, at 12:20 AM, ayyanar wrote: > >> >> Let's say that I have 3 documents with a field "name" and a >> multivalued field >> "keywords": >> >> Document 1: >> >> Name = Dog >> Keywords = Cool, Big, Dirty >> >> Document 2: >> >> Name = Cat >> Keywords = Small, Dirty >> >> Document 3: >> >> Name = Fish >> Keywords = Smells, Dirty >> >> If I search the keyword "Dirty", then I need to get all the >> documents with >> the keyword "Dirty". But I want document 3 to come first. Iam aware >> we can >> set the boost for the keyword "Dirty", and we can go for the following >> concepts: >> >> 1) Storing multiple times the boosted keyword >> 2) Using payload >> >> Iam not sure on how to write the code for the payload concept since >> there is >> no good example code available in the net. You can help me on two >> things: >> >> 1) Suggesting some other good approach >> 2) Providing me the payload code example. >> >> Thanks in advance >> Ayyanar >> >> -- >> View this message in context: >> http://www.nabble.com/Newbie-Question-on---Multi-valued-Keyword-field-search-tp20987615p20987615.html >> Sent from the Lucene - General mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/Newbie-Question-on---Multi-valued-Keyword-field-search-tp20987615p20988263.html Sent from the Lucene - General mailing list archive at Nabble.com.