You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Lance Norskog (JIRA)" <ji...@apache.org> on 2007/10/25 03:46:50 UTC

[jira] Created: (SOLR-391) Date type parser is overly fussy

Date type parser is overly fussy
--------------------------------

                 Key: SOLR-391
                 URL: https://issues.apache.org/jira/browse/SOLR-391
             Project: Solr
          Issue Type: Bug
          Components: search
    Affects Versions: 1.2
            Reporter: Lance Norskog
            Priority: Trivial


The parser for the Solr 'date' type is overly picky. It requires an entire year-month-day-T-hour-minute-second-Z string.

However, when it is printed out it does not include the Z at the end. Thus, a naive XSL script that translates the output into an XML that can be re-fed with the Solr input format has to include the trailing Z to get dates to parse.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-391) Date type parser is overly fussy

Posted by "Lance Norskog (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539870 ] 

Lance Norskog commented on SOLR-391:
------------------------------------

This was with Solr 1.2 release. If it works now,
that's great!



https://issues.apache.org/jira/browse/SOLR-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537484


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


> Date type parser is overly fussy
> --------------------------------
>
>                 Key: SOLR-391
>                 URL: https://issues.apache.org/jira/browse/SOLR-391
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.2
>            Reporter: Lance Norskog
>            Priority: Trivial
>
> The parser for the Solr 'date' type is overly picky. It requires an entire year-month-day-T-hour-minute-second-Z string.
> However, when it is printed out it does not include the Z at the end. Thus, a naive XSL script that translates the output into an XML that can be re-fed with the Solr input format has to include the trailing Z to get dates to parse.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-391) Date type parser is overly fussy

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539882 ] 

Hoss Man commented on SOLR-391:
-------------------------------

I don't know of any specific change to anything related to Dates or output formats that would have changed this ... can you elaborate on what you meant in your original bug report by "when it is printed out it does not include the Z at the end" ?

In what context are you referring to dates being printed out?
Using 1.2 can you reproduce this using the example configs/docs?  
what URL can be used to see dates without the Z ?

> Date type parser is overly fussy
> --------------------------------
>
>                 Key: SOLR-391
>                 URL: https://issues.apache.org/jira/browse/SOLR-391
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.2
>            Reporter: Lance Norskog
>            Priority: Trivial
>
> The parser for the Solr 'date' type is overly picky. It requires an entire year-month-day-T-hour-minute-second-Z string.
> However, when it is printed out it does not include the Z at the end. Thus, a naive XSL script that translates the output into an XML that can be re-fed with the Solr input format has to include the trailing Z to get dates to parse.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-391) Date type parser is overly fussy

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537484 ] 

Yonik Seeley commented on SOLR-391:
-----------------------------------

> However, when it is printed out it does not include the Z at the end.
That would be a bug...

How does one reproduce this?  I checked XML, JSON, Python, and Ruby output writers... they all include the Z for the DateField type.


> Date type parser is overly fussy
> --------------------------------
>
>                 Key: SOLR-391
>                 URL: https://issues.apache.org/jira/browse/SOLR-391
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.2
>            Reporter: Lance Norskog
>            Priority: Trivial
>
> The parser for the Solr 'date' type is overly picky. It requires an entire year-month-day-T-hour-minute-second-Z string.
> However, when it is printed out it does not include the Z at the end. Thus, a naive XSL script that translates the output into an XML that can be re-fed with the Solr input format has to include the trailing Z to get dates to parse.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.