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 16:07:22 GMT

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

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

Hi Chris,

In your 1st point, are you saying that defining "fl=field1,field2,field3" will populate a
column with empty quotes if field2 is missing in a document?

however, in my URL, I have "&fl=id,field3,field1,field2", but since some Documents do
not have field2 data in the index, the output is missing columns: (quotes are not shown for
clarity)

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

In this example, both the 1st and 2nd Document are missing "field2" data, so 'field2' is not
even appearing in the header of my output, and neither record is populated with a empty placeholder
for "field2".

Hopefully I'm being clear with my example.

Thanks!

> 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