|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (SOLR-1023) StatsComponent should support dates (and other non-numeric fields)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: 1.4 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. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Updated: (SOLR-1023) StatsComponent should support dates (and other non-numeric fields)[ https://issues.apache.org/jira/browse/SOLR-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shalin Shekhar Mangar updated SOLR-1023: ---------------------------------------- Fix Version/s: (was: 1.4) 1.5 > 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: 1.5 > > > 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. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Updated: (SOLR-1023) StatsComponent should support dates (and other non-numeric fields)[ https://issues.apache.org/jira/browse/SOLR-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shalin Shekhar Mangar updated SOLR-1023: ---------------------------------------- Description: 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. was: 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. Marking for 1.5 because although it is useful, there is no patch yet. > 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: 1.5 > > > 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. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (SOLR-1023) StatsComponent should support dates (and other non-numeric fields)[ https://issues.apache.org/jira/browse/SOLR-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731070#action_12731070 ] Rafał Kuć commented on SOLR-1023: --------------------------------- I should be able to supply a patch adding date support for StatsCommponent and for string fields too. What I think is what other statistics appart from minimum and maximum would be usefull ? I`m thinking about count and missing. Any other ideas ? > 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: 1.5 > > > 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. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Updated: (SOLR-1023) StatsComponent should support dates (and other non-numeric fields)[ https://issues.apache.org/jira/browse/SOLR-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Male updated SOLR-1023: ----------------------------- Attachment: SOLR-1023.patch I have attached a patch that adds support for String and Date fields. To support these I have also made some improvements in the underlying architecture so that it is more extensible. It is now possible to easy add statistics for other field types if desired in the future. I have also updated the test class to include tests for String and Date fields. > 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: 1.5 > > Attachments: SOLR-1023.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. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Updated: (SOLR-1023) StatsComponent should support dates (and other non-numeric fields)[ https://issues.apache.org/jira/browse/SOLR-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Holland updated SOLR-1023: ------------------------------- Attachment: stats-component-path-nightly-2009-10-08.patch If anyone is interested I've attached a patch that patches against nightly 2009-10-08. > 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: 1.5 > > Attachments: 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. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (SOLR-1023) StatsComponent should support dates (and other non-numeric fields)[ https://issues.apache.org/jira/browse/SOLR-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773949#action_12773949 ] Peter Wolanin commented on SOLR-1023: ------------------------------------- Thanks Mark - I'm disappointed that this didn't get into 1.4, but will try the patch. > 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: 1.5 > > Attachments: 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. - You can reply to this email to add a comment to the issue online. |
| Free embeddable forum powered by Nabble | Forum Help |