Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 20998 invoked from network); 11 Feb 2011 13:49:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 13:49:40 -0000 Received: (qmail 94249 invoked by uid 500); 11 Feb 2011 13:49:37 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 93788 invoked by uid 500); 11 Feb 2011 13:49:33 -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 93780 invoked by uid 99); 11 Feb 2011 13:49:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 13:49:33 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of ken.foster@realestate.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 13:49:26 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PntMt-0007j5-MM for solr-user@lucene.apache.org; Fri, 11 Feb 2011 05:49:03 -0800 Date: Fri, 11 Feb 2011 05:49:03 -0800 (PST) From: kenf_nc To: solr-user@lucene.apache.org Message-ID: <1297432143660-2473601.post@n3.nabble.com> Subject: Any contribs available for Range field type? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have a huge need for a new field type. It would be a Poly field, similar to Point or Payload. It would take 2 data elements and a search would return a hit if the search term fell within the range of the elements. For example let's say I have a document representing an Employment record. I may want to create a field for years_of_service where it would take values 1999,2004. Then in a query q=years_of_service:2001 would be a hit, q=years_of_service:2010 would not. The field would need to take a data type attribute as a parameter. I may need to do integer ranges, float/double ranges, date ranges. I don't see the need now, but heck maybe even a string range. This would be useful for things like Event dates. An event often occurs between several days (or hours) but the query is something like "what events are happening today". If I did q=event_date:NOW (or similar) it should hit all documents where event_date has a range that in inclusive of today. Another example would be product category document. A specific automobile may have a fixed price, but a category of auto (2010 BMW 3-series for example) would have a price range. I hope you get the point. My question (finally) is, does anyone know of an existing contribution to the public domain that already does this? I'm more of a .Net/C# developer than a Java developer. I know my way around Java, but don't really have the right tools to build/test/etc. So was hoping to borrow rather than build if I could. Thanks, Ken -- View this message in context: http://lucene.472066.n3.nabble.com/Any-contribs-available-for-Range-field-type-tp2473601p2473601.html Sent from the Solr - User mailing list archive at Nabble.com.