lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-2970) CSV ResponseWriter returns fields defined as stored=false in schema
Date Thu, 15 Dec 2011 19:40:31 GMT

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

Jan Høydahl commented on SOLR-2970:
-----------------------------------

So there are two distinct issues here
A) CSV attempts to return fields which are not stored - which is bound to always return blank
value
B) When returning a stored field which has no value (null) for a document, there is no way
to distinguish that from the empty string case

I think B) should have its own JIRA.

For A), I still cannot see any usecase where you want to ask for a non-stored field in the
CSV output, even if you ask for it explicitly - since it will always be null/empty. If you
ask the XML or JSON writer for a non-stored field, you never get it no matter what - it formally
does not exist in this context.
                
> CSV ResponseWriter returns fields defined as stored=false in schema
> -------------------------------------------------------------------
>
>                 Key: SOLR-2970
>                 URL: https://issues.apache.org/jira/browse/SOLR-2970
>             Project: Solr
>          Issue Type: Bug
>          Components: Response Writers
>            Reporter: Jan Høydahl
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: SOLR-2970.patch
>
>
> 1. Add &wt=csv to a query
> 2. You get columns for non-stored fields

--
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


Mime
View raw message