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 580B810519 for ; Tue, 30 Apr 2013 19:23:11 +0000 (UTC) Received: (qmail 50064 invoked by uid 500); 30 Apr 2013 19:23:07 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 49989 invoked by uid 500); 30 Apr 2013 19:23:07 -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 49978 invoked by uid 99); 30 Apr 2013 19:23:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 19:23:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of arunrangarajan@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-wi0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 19:23:00 +0000 Received: by mail-wi0-f172.google.com with SMTP id hm14so4305878wib.5 for ; Tue, 30 Apr 2013 12:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=bdpQgLeg2cx4XK3wNhLlzhRIstbpSQKl+8ElHWOKoqc=; b=josBJqECZFwIKWlnMyEF7ngXsMGB5gdIQT9w4ERj6hIik3iyn9JbN6c9lMpjm+2+V1 gqJY2yD2VFePkLGrC4ShZA41oLvADDntyqWv7xr6LXQzxC07BFJAuAfjGiRnaIcioXNW zwzm1LSYXLTsRWxEsws0qefBvSQ2tO1LfEUCAAJbhnu8teHNo/s5+nVq5aY/sEQDKBEW /qm6fngMhmjq4SdrbBgpgTMbE1eJIB7LwSmwaCMBlikVChil+wSF/dGEN0sqiHjNr5oo tY+3KHqorfZrjzSbrbFDnARBBf1sNh+vIJz9EC7hWvZS61CpqrdUr6Kue3PXtl4nGhV/ 8HaQ== X-Received: by 10.180.13.179 with SMTP id i19mr26706202wic.18.1367349760263; Tue, 30 Apr 2013 12:22:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.39.137 with HTTP; Tue, 30 Apr 2013 12:22:20 -0700 (PDT) In-Reply-To: References: From: Arun Rangarajan Date: Tue, 30 Apr 2013 12:22:20 -0700 Message-ID: Subject: Re: Solr Range Queries with Field value To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11c21a60be8b9104db98ec10 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c21a60be8b9104db98ec10 Content-Type: text/plain; charset=ISO-8859-1 Erick, I believe Indika wants to do this SQL WHERE clause in Solr: WHERE start_time_utc_epoch >= '1970-01-01T00:00:00Z' AND start_time_utc_epoch <= merchant_end_of_day_in_utc_epoch On Tue, Apr 30, 2013 at 11:49 AM, Erick Erickson wrote: > Could you define your use-case in some more detail? On the > surface, this query doesn't really make a lot of sense. How > would merchant_end_of_day_in_utc_epoch be determined? > Presumably there are zillions of values across your index for > this value, depending on the document. Which one should be > used? > > Best > Erick > > On Mon, Apr 29, 2013 at 8:34 PM, Indika Tantrigoda > wrote: > > Hi All, > > > > I'd like to know if its possible to use a field value in a Solr range > query > > ? Something similar to start_time_utc_epoch:[1970-01-01T00:00:00Z TO > > merchant_end_of_day_in_utc_epoch]) > > > > merchant_end_of_day_in_utc_epoch is an indexed field. > > > > I am using Solr 4. > > > > Thanks, > > Indika > --001a11c21a60be8b9104db98ec10--