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 ABC1C10242 for ; Thu, 13 Mar 2014 11:01:28 +0000 (UTC) Received: (qmail 95488 invoked by uid 500); 13 Mar 2014 11:01:23 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 95433 invoked by uid 500); 13 Mar 2014 11:01:23 -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 95425 invoked by uid 99); 13 Mar 2014 11:01:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 11:01:21 +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 rwiker@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qc0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 11:01:15 +0000 Received: by mail-qc0-f173.google.com with SMTP id r5so868897qcx.4 for ; Thu, 13 Mar 2014 04:00:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sfc8z5ZOWt9joQ6BjHhHeWwm+QwQjSG6197K6/6rbcw=; b=GpjGDOA6SYDIMGdmp+a4Fl6ZnE0HeTmdtCekU1phJVKi9gYRCHefulqJA4TpXrGIHt 4YdpdOKBJzRoAiPa63t77hPfZfP6UBgyMk0dvEdYYpcAzj7+g7GevcDnuHVOwjs6WKux G6jdmRsleI46+oBhf6osacgxQlLOnPK57SqP6qr/b3yGv5ws5CHkIPYOQel5x/ljWw++ FaR+xiYdRjJke1m51tvGtskIncT5lyUcTIUaga0+V9JQQ6bJWmx4/U4X34+6KQ5KKjwj srXTzdYUGzKLBFtidWhcfFrBkBaj3W2FzvdEVVRUXLU3O2dY5ph6v+Y/VZaCyFZJUP8W zxrg== MIME-Version: 1.0 X-Received: by 10.140.31.66 with SMTP id e60mr1314749qge.76.1394708454525; Thu, 13 Mar 2014 04:00:54 -0700 (PDT) Received: by 10.96.97.193 with HTTP; Thu, 13 Mar 2014 04:00:54 -0700 (PDT) In-Reply-To: References: Date: Thu, 13 Mar 2014 12:00:54 +0100 Message-ID: Subject: Re: regex in Solr Query From: Raymond Wiker To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a113a9bf2ff50dd04f47add29 X-Virus-Checked: Checked by ClamAV on apache.org --001a113a9bf2ff50dd04f47add29 Content-Type: text/plain; charset=ISO-8859-1 Regular expressions is a text-matching mechanism, so you shouldn't expect to be able to use it on numeric data. If your timestamps are of the form you indicate, you should be able to filter on pubdateraw:[20050000 TO 20059999]. On Thu, Mar 13, 2014 at 11:45 AM, Priti Solanki wrote: > Hi, > > > I am trying to fetch all the record for 2005 > > I have field(int) "pubdateraw": 20130508 > > Not working - select?q=pubdateraw:/2013*/ > > Not working - select?q=pubdateraw:/.2013*./ > > Is it possible to have regex on int field in solr 4.5?? > > to get the record with "20130508" how am i suppose to write my query in > solr. > Any reading links will be very much helpful. > > Regards, > Priti > --001a113a9bf2ff50dd04f47add29--