lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Black (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-1925) CSV Response Writer
Date Thu, 10 Jun 2010 15:04:16 GMT

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

Kevin Black commented on SOLR-1925:
-----------------------------------

Thanks for this response writer!  
Question (not sure if this is a universal problem, or a problem with my solr install):
   if a document is missing a field value, is the CSV output missing a column?

e.g. 
Doc 1:  id=121; field1=string1.1; field2=string1.2; field3=string1.3
Doc 2:  id=122; field1=string2.1;  field3=string2.3    [field2 is empty with no value]
Doc 3:  id=123; field1=string3.1; field2=string3.2; field3=string3.3

my CSV output is: 

id,field1,field2,field3
121,string1.1,string1.2,string1.3
122,string2.1,string2.3
123,string3.1,string3.2,string3.3

For the 2nd record, the 3rd field appears in the 2nd column which annoys the user who downloads
the CSV data  ;)



> CSV Response Writer
> -------------------
>
>                 Key: SOLR-1925
>                 URL: https://issues.apache.org/jira/browse/SOLR-1925
>             Project: Solr
>          Issue Type: New Feature
>          Components: Response Writers
>         Environment: indep. of env.
>            Reporter: Chris A. Mattmann
>             Fix For: Next
>
>         Attachments: SOLR-1925.Mattmann.053010.patch.2.txt, SOLR-1925.Mattmann.053010.patch.3.txt,
SOLR-1925.Mattmann.053010.patch.txt
>
>
> As part of some work I'm doing, I put together a CSV Response Writer. It currently takes
all the docs resultant from a query and then outputs their metadata in simple CSV format.
The use of a delimeter is configurable (by default if there are multiple values for a particular
field they are separated with a | symbol).

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message