Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E80D3109F2 for ; Wed, 2 Apr 2014 15:20:38 +0000 (UTC) Received: (qmail 56445 invoked by uid 500); 2 Apr 2014 15:20:33 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 55742 invoked by uid 500); 2 Apr 2014 15:20:31 -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 55722 invoked by uid 99); 2 Apr 2014 15:20:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 15:20:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.138.91.119] (HELO nm26-vm6.bullet.mail.ne1.yahoo.com) (98.138.91.119) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 15:20:22 +0000 Received: from [98.138.100.114] by nm26.bullet.mail.ne1.yahoo.com with NNFMP; 02 Apr 2014 15:19:59 -0000 Received: from [98.138.89.167] by tm105.bullet.mail.ne1.yahoo.com with NNFMP; 02 Apr 2014 15:19:59 -0000 Received: from [127.0.0.1] by omp1023.mail.ne1.yahoo.com with NNFMP; 02 Apr 2014 15:19:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 134779.17832.bm@omp1023.mail.ne1.yahoo.com Received: (qmail 38507 invoked by uid 60001); 2 Apr 2014 15:19:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1396451999; bh=zju0AF5GHxN5e3b3t04Y4dmMOMOA3hp86u5QpzXpE+M=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Pn+V1L8RDw4/WRSoU6Q9rgVQPEl+8ScRO6xEacxQPTAa1Dt7ARjehPnRbfxOFD2TzOyczYrT3NhW+X61w4X8qzpspbjchU2n8993hqaWwq2dLKDu1uaZ18Lu6tVYHQnu7Jj0GIEAoWaQRNAOsiYraaoQQwKIaZfNWiOEfzwatpI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=PPyftf2Vv10Qz56qpb6dE+z5AvmsywCoTOK9rBpkXXm9NC0HoH/SSeTbdaUKEEvA5+kZmZYdosseBh2Xhnc/whuEOz89nNSsu+l+NY73bRbz5aoa315OpK3MXitDyYrNcnwp3+gyTVXLFybToH7Wu70cFrxHOCzZ1JQnjJnmTnY=; X-YMail-OSG: IDR93pcVM1nrfVhaz7NLChLThvmmzQlG3IpUS3KTRfux9KF ktUHz1SUBMiEx8yS6D_ySYq1D5tr5vHcxLrCRlJS4GpYzqLA3Ti7uLSGD3Wi 4y3LQi_g.3tiCWQ.7Vi_MPn_7418E9qFv6Q97feJizspth1Uy6UeFTXkKOAa e7P7TfMIbwqxnjP.CEURd_72BVQVeKI2bAR2NfaheuDnD4JhYbNLD6.Ls645 iR.88JUrPR9AiNqlU2ljf02a.w0WNWQw9IFwI9FYL8pmgHuYMc8EWJnU2DlK Y5mpie.bLxZUVtjz_6v7dUMykoJAyyg.61JmFUlJzb_I9mOaoyfVPfDioBPu 6KQRa4iO5mGHR8BOFWsdO_hvwADY.YP2XFvGHi.VbsMyhiaXdnYVw6e.IwbT 3M0JrUqgYeQmqcfxoP4uMCYEf2akTIlY5eyfh_ZCw1tvkTJEILukNRWCgXmo y5TF.Y_CKMq90DndI5pZctxqsZASa8v1bUtzkBA9Evi3igRekskEoqSrMPDZ pWKTtzEj_XGWO4GNiDiCGMK81tD.RRdAB1w811_el0U8MB_9K7IT3gn52Fc0 _iCx4JvugkxMoyI0OE6VkFgAH.bhENyNUbrepgO84AcUHLDccgOf7zhEWpoc 12gsz Received: from [78.167.59.24] by web124703.mail.ne1.yahoo.com via HTTP; Wed, 02 Apr 2014 08:19:58 PDT X-Rocket-MIMEInfo: 002.001,SGksCgpIb3cgbWFueSBkaXN0aW5jdMKgcHJvZHVjdHR5cGUgZG8geW91IGhhdmU_CgpNYXkgYmXCoAoKcT1DXjUwMDAgT1IgQl40MDAwIE9SIEFeMzAwMCBPUiBEJmRmPXByb2R1Y3R0eXBlCgpjb3VsZCB3b3JrLgoKSWYgeW91IGNhbiBjYW1lIHVwIHdpdGggYSBmdW5jdGlvbiB0aGF0IHRha2VzIG1heGltdW0gdmFsdWUgd2hlbiBwcm9kdWN0dHlwZT1DIOKApiBldGMgeW91IGNhbiBzb3J0IGJ5IGZ1bmN0aW9uIHF1ZXJpZXMgdG9vLgpodHRwOi8vd2lraS5hcGFjaGUub3JnL3NvbHIvRnVuY3Rpb25RdWVyeQoBMAEBAQE- X-Mailer: YahooMailWebService/0.8.181.645 References: Message-ID: <1396451998.36479.YahooMailNeo@web124703.mail.ne1.yahoo.com> Date: Wed, 2 Apr 2014 08:19:58 -0700 (PDT) From: Ahmet Arslan Reply-To: Ahmet Arslan Subject: Re: sort by an attribute values sequence To: "solr-user@lucene.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi,=0A=0AHow many distinct=C2=A0producttype do you have?=0A=0AMay be=C2=A0= =0A=0Aq=3DC^5000 OR B^4000 OR A^3000 OR D&df=3Dproducttype=0A=0Acould work.= =0A=0AIf you can came up with a function that takes maximum value when prod= ucttype=3DC =E2=80=A6 etc you can sort by function queries too.=0Ahttp://wi= ki.apache.org/solr/FunctionQuery=0A=0A=0AAhmet=0A=0A=0AOn Wednesday, April = 2, 2014 1:52 PM, santosh sidnal wrote:=0ARe-send= ing my e-mail. any pointers/ links for the issue will help me lot.=0A=0ATha= nks in advance.=0A=0A=0AOn Tue, Apr 1, 2014 at 4:25 PM, santosh sidnal wrote:=0A=0A> Hi All,=0A>=0A> We have a specific requ= irement of sorting the products as per a specific=0A> attribute value seque= nce. Any pointer or source of info would help us.=0A>=0A> Example of the sc= enario;=0A>=0A> Let's say for search result i want to sort results based on= a attribute=0A> producttype. Where producttype has following values, A, B,= C, D.=0A>=0A> so while in solr query i can give either producttype asc, pr= oducttype desc.=0A>=0A> But I want get result in a specific way by saying f= irst give me All=0A> results of values 'C' then B, A, D.=0A>=0A>=0A> --=0A>= Regards,=0A> Santosh Sidnal=0A=0A>=0A>=0A=0A=0A-- =0ARegards,=0ASantosh Si= dnal=0A