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 86F3417AC6 for ; Tue, 28 Jul 2015 14:24:09 +0000 (UTC) Received: (qmail 34882 invoked by uid 500); 28 Jul 2015 14:24:01 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 34816 invoked by uid 500); 28 Jul 2015 14:24:01 -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 34798 invoked by uid 99); 28 Jul 2015 14:24:00 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2015 14:24:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1F9A81A7AC3 for ; Tue, 28 Jul 2015 14:24:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.212 X-Spam-Level: ** X-Spam-Status: No, score=2.212 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, KAM_ASCII_DIVIDERS=0.8, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=tiaa-cref.org Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id E5blt10LiVij for ; Tue, 28 Jul 2015 14:23:53 +0000 (UTC) Received: from nc89acb01isea01.tiaa-cref.org (nc89acb01isea01.tiaa-cref.org [143.165.49.33]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 955B620775 for ; Tue, 28 Jul 2015 14:23:52 +0000 (UTC) X-ExtLoopCount2: from 10.165.48.48 X-IronPort-AV: E=Sophos;i="5.15,563,1432598400"; d="scan'208";a="434123002" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tiaa-cref.org; i=@tiaa-cref.org; q=dns/txt; s=TIAA-CREF; t=1438093292; x=1469629292; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=kbeLkh+uuQVhzaiBGiH3G8DkKfNUdRm2M5bAFJlaSWE=; b=UgI3qlSOj+LC647L1heE1MHzX6aiH+ngDNcRLME3hbX8u6nmhik0lWdM GXpJgOxJ7fgQWUaurCtCr+E5fz4GF6Mck+3WzQNE6hqqW5cvxUqRUTDSR IS8EOAcY16lIF+ybOTzn5XYwuexCJGCtZMOumZUIJpmLA38zWGIxyqlVr Q=; X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,563,1432598400"; d="scan'208";a="434122613" From: "Reitzel, Charles" To: "solr-user@lucene.apache.org" Subject: RE: Quantity wise price searching in Apache SOLR Thread-Topic: Quantity wise price searching in Apache SOLR Thread-Index: AQHQyP+rbjkRbH6F3kyIMT65EveXYZ3w7zzQ Date: Tue, 28 Jul 2015 14:21:09 +0000 Message-ID: References: <1438065282288-4219406.post@n3.nabble.com> In-Reply-To: <1438065282288-4219406.post@n3.nabble.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.65.202.17] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This is a job for a custom query function. -----Original Message----- From: unique.jimish@gmail.com [mailto:unique.jimish@gmail.com] = Sent: Tuesday, July 28, 2015 2:35 AM To: solr-user@lucene.apache.org Subject: Quantity wise price searching in Apache SOLR Currently I am working on e-commerce website where price can be vary based = on quantity. For e.g Product A --------------------------------------- = Quantity | 25 | 50 | 70 | 90+ | --------------------------------------- Price | 0.76 | 0.79 | 0.65 | 0.60 | --------------------------------------- Product B --------------------------------------- Quantity | 25 | 40 | 65 | 80+ | --------------------------------------- Price | 0.81 | 0.73 | 0.62 | 0.60 | --------------------------------------- Please note that quantity break will be different for one and another produ= ct. How I should save into solr so it fulfill following criteria. -If user search for desired quantity, system should pick price from that qu= antity range. If User search for 60 then system should show 0.65 for "Produ= ct A" and 0.62 for "Product B" -Also user selects desired quantity and sort by price "lowest to highest" I= t should match the price where selected quantity falls. If user search for = quantity 60 then "Product B"(0.62) should be first and "Product A"(0.65) sh= ould be second. -If user sort "lowest to highest" without selecting quantity then system sh= ow show "Product A" should be first and "Product B" should be second as Pro= duct A (0.76) has lowest price than Product B(0.81) -- View this message in context: http://lucene.472066.n3.nabble.com/Quantity-w= ise-price-searching-in-Apache-SOLR-tp4219406.html Sent from the Solr - User mailing list archive at Nabble.com. ************************************************************************* This e-mail may contain confidential or privileged information. If you are not the intended recipient, please notify the sender immediately= and then delete it. TIAA-CREF *************************************************************************