Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 675779004 for ; Wed, 14 Dec 2011 13:24:01 +0000 (UTC) Received: (qmail 99505 invoked by uid 500); 14 Dec 2011 13:24:00 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 99443 invoked by uid 500); 14 Dec 2011 13:23:59 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 99435 invoked by uid 99); 14 Dec 2011 13:23:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 13:23:59 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 13:23:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C7550112A76 for ; Wed, 14 Dec 2011 13:23:30 +0000 (UTC) Date: Wed, 14 Dec 2011 13:23:30 +0000 (UTC) From: "jitendra saklani (Created) (JIRA)" To: dev@lucene.apache.org Message-ID: <2115322422.10857.1323869010817.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (SOLR-2969) Query inside the sort MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Query inside the sort --------------------- Key: SOLR-2969 URL: https://issues.apache.org/jira/browse/SOLR-2969 Project: Solr Issue Type: Task Components: clients - php Affects Versions: 4.0 Environment: LAMP Reporter: jitendra saklani Fix For: 4.0 Hi All, I need a help in solr search. I wanted to use sorting in my application with a complex conditions. Please see below line for sorting: sort=sum(geodist(geocode,42.358162,-71.054065),membership_level_no, query(if(zipcode==94123) and status ==1)1 else 0;) asc right now in sum() function first two arguments are fine I want to add a query which will work something like I wrote above. Please anyone can give me idea to achieve this. Thanks you, Jitu -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org