[ 
https://issues.apache.org/jira/browse/SOLR-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149900#comment-13149900
 ] 

Ryan McKinley commented on SOLR-1023:
-------------------------------------

I ran:
{code}
ryan@xps /cygdrive/c/workspace/apache/lucene-3x/solr
$ svn merge -c 1201855 https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/
--- Merging r1201855 into '.':
U    core\src\test\org\apache\solr\handler\component\StatsComponentTest.java
Conflict discovered in 
'core/src/java/org/apache/solr/request/UnInvertedField.java'.
Select: (p) postpone, (df) diff-full, (e) edit,
        (mc) mine-conflict, (tc) theirs-conflict,
        (s) show all options: p
C    core\src\java\org\apache\solr\request\UnInvertedField.java
Conflict discovered in 
'core/src/java/org/apache/solr/handler/component/FieldFacetStats.java'.
Select: (p) postpone, (df) diff-full, (e) edit,
        (mc) mine-conflict, (tc) theirs-conflict,
        (s) show all options: p
C    core\src\java\org\apache\solr\handler\component\FieldFacetStats.java
A    core\src\java\org\apache\solr\handler\component\StatsValuesFactory.java
U    core\src\java\org\apache\solr\handler\component\StatsValues.java
Conflict discovered in 
'core/src/java/org/apache/solr/handler/component/StatsComponent.java'.
Select: (p) postpone, (df) diff-full, (e) edit,
        (mc) mine-conflict, (tc) theirs-conflict,
        (s) show all options: p
C    core\src\java\org\apache\solr\handler\component\StatsComponent.java
Summary of conflicts:
  Text conflicts: 3
{code}

but resolving the conflicts is more then I'm up for at the moment.  



                
> 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
>            Assignee: Ryan McKinley
>             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, 
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to