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 95EEA178DF for ; Mon, 3 Nov 2014 23:09:53 +0000 (UTC) Received: (qmail 60186 invoked by uid 500); 3 Nov 2014 23:09:47 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 60116 invoked by uid 500); 3 Nov 2014 23:09:47 -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 60099 invoked by uid 99); 3 Nov 2014 23:09:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 23:09:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alxsss@aim.com designates 64.12.224.134 as permitted sender) Received: from [64.12.224.134] (HELO omr-m1.mx.aol.com) (64.12.224.134) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 23:09:20 +0000 Received: from mtaomg-mac01.mx.aol.com (mtaomg-mac01.mx.aol.com [172.26.222.207]) by omr-m1.mx.aol.com (Outbound Mail Relay) with ESMTP id A91B1380000C8 for ; Mon, 3 Nov 2014 18:07:18 -0500 (EST) Received: from core-mfa10d.mail.aol.com (core-mfa10.mail.aol.com [172.27.61.10]) by mtaomg-mac01.mx.aol.com (OMAG/Core Interface) with ESMTP id 55D2F38000082 for ; Mon, 3 Nov 2014 18:07:18 -0500 (EST) To: solr-user@lucene.apache.org Subject: custom sorting of search result X-MB-Message-Source: WebUI X-MB-Message-Type: User MIME-Version: 1.0 From: alxsss@aim.com Content-Type: multipart/alternative; boundary="--------MB_8D1C5D20C9CE12E_3224_E5EAA_webmail-m267.sysops.aol.com" X-Mailer: AOL Webmail STANDARD Received: from 174.46.241.61 by webmail-m267.sysops.aol.com (64.12.145.225) with HTTP (WebMailUI); Mon, 03 Nov 2014 18:07:18 -0500 Message-Id: <8D1C5D20C89D636-3224-3FDF6@webmail-m267.sysops.aol.com> X-Originating-IP: [174.46.241.61] Date: Mon, 3 Nov 2014 18:07:18 -0500 x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aim.com; s=20140625; t=1415056038; bh=ohvGhgLXT+Tjr+6M6nZVSXxJEHyjZ8sgXEicrUVdRJg=; h=From:To:Subject:Message-Id:Date:MIME-Version:Content-Type; b=F3DLJKNIu0EwWT+5SoUwnY5wazeBuP03csJnJVQRX0X1P+SizOEchuBAk4CupyNti s/VXzlZt1hi0OFgv62bE+JW6dnU556QjB9aQYmELPRzIR6iGKYFEcdp3WLzR1KQ0Pt dMAUacwiXGRn4fPxu0ADSzfYN+qhsg8IOnljh8nk= x-aol-sid: 3039ac1adecf54580aa65938 X-Virus-Checked: Checked by ClamAV on apache.org ----------MB_8D1C5D20C9CE12E_3224_E5EAA_webmail-m267.sysops.aol.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" Hello,=0A=0A=0AWe=20need=20to=20order=20solr=20search=20results=20according=20to= =20specific=20rules.=20=0A=0A=0AI=20will=20explain=20with=20an=20example.=20Let=20= say=20solr=20returns=201000=20results=20for=20query=20"sport".=20=0AThese=20resu= lts=20must=20be=20divided=20into=20three=20buckets=20according=20to=20rules=20th= at=20come=20from=20database.=20=0AThen=20one=20doc=20must=20be=20chosen=20from=20= each=20bucket=20and=20put=20in=20the=20results=20subsequently=20until=20all=20bu= ckets=20are=20empty.=0A=0A=0AOne=20approach=20was=20to=20modify/override=20solr=20= code=20where=20it=20gets=20results,=20sorts=20them=20and=20return=20#rows=20of=20= elements.=0AHowever,=20from=20the=20code=20in=20Weight.java=20scoreAll=20functio= n=20we=20see=20that=20docs=20have=20only=20internal=20document=20id=20and=20noth= ing=20else.=20=0A=0A=0AWe=20expect=20unique=20solr=20document=20id=20in=20order=20= to=20match=20documents=20with=20the=20custom=20scoring.=0AWe=20also=20=20see=20t= hat=20Lucene=20code=20handles=20those=20doc=20ids=20to=20scoreAll=20function,=20= and=20for=20now=20We=20do=20not=20want=20to=20modify=20Lucene=20code=0A=20and=20= prefer=20to=20solve=20this=20issue=20as=20a=20Solr=20=20plugin=20.=0A=0A=0AAny=20= ideas=20are=20welcome.=0A=0A=0A=0A=0AThanks.=0AAlex.=20=0A=0A=0A=0A=0A ----------MB_8D1C5D20C9CE12E_3224_E5EAA_webmail-m267.sysops.aol.com--