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 6529E9227 for ; Sat, 12 Nov 2011 11:23:15 +0000 (UTC) Received: (qmail 1439 invoked by uid 500); 12 Nov 2011 11:23:13 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 1373 invoked by uid 500); 12 Nov 2011 11:23:12 -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 1363 invoked by uid 99); 12 Nov 2011 11:23:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Nov 2011 11:23:12 +0000 X-ASF-Spam-Status: No, hits=-2001.2 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; Sat, 12 Nov 2011 11:23:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C281A56188 for ; Sat, 12 Nov 2011 11:22:51 +0000 (UTC) Date: Sat, 12 Nov 2011 11:22:51 +0000 (UTC) From: "Gunnlaugur Thor Briem (Updated) (JIRA)" To: dev@lucene.apache.org Message-ID: <1665871730.24053.1321096971798.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-1023) StatsComponent should support dates (and other non-numeric fields) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gunnlaugur Thor Briem updated SOLR-1023: ---------------------------------------- Attachment: (was: SOLR-1023-against-branch_3x.svn.diff) > StatsComponent should support dates (and other non-numeric fields) > ------------------------------------------------------------------ > > Key: SOLR-1023 > URL: https://issues.apache.org/jira/browse/SOLR-1023 > Project: Solr > Issue Type: New Feature > Affects Versions: 1.4 > Environment: Mac OS 10.5, java version "1.5.0_16" > Reporter: Peter Wolanin > Fix For: 3.5, 4.0 > > Attachments: SOLR-1023-against-branch_3x.svn.patch, SOLR-1023-against-lucene_3_4_0.patch, SOLR-1023.patch, SOLR-1023.patch, stats-component-path-nightly-2009-10-08.patch > > > Currently, the StatsComponent only supports single-value numeric fields: > http://wiki.apache.org/solr/StatsComponent > trying to use it with a date field I get an exception like: java.lang.NumberFormatException: For input string: "2009-01-27T20:04:04Z" > trying to use it with a string I get an error 400 "Stats are valid for single valued numeric values." > For constructing date facets it would be very useful to be able to get the minimum and maximum date from a DateField within a set of documents. In general, it could be useful to get the minimum and maximum from any field type that can be compared, though that's of less importance. -- 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