lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tommy chheng (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1925) CSV Response Writer
Date Wed, 14 Jul 2010 22:14:52 GMT

     [ https://issues.apache.org/jira/browse/SOLR-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

tommy chheng updated SOLR-1925:
-------------------------------

    Attachment: SOLR-1925.Chheng.071410.patch.txt

Thanks for this!
I fixed the path of the queryResponseWriter class in the example solrconfig.xml. This was
successfully applied against solr 4.0 trunk.

A few quirks:
- When I didn't specify a default Delimiter, it printed out null as delimiter. I couldn't
figure out why because init(NamedList args) specifies it'll use a default of ","
"organization"null"2"null"

- If i don't specify the column names, the output doesn't put in empty "" correctly.
eg: output has a mismatched number of commas.
"organization","1","Test","Name","2","   ","2000000","8",
"organization","4","Solar","4","0",


> 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
>            Assignee: Erik Hatcher
>             Fix For: Next
>
>         Attachments: SOLR-1925.Chheng.071410.patch.txt, SOLR-1925.Mattmann.053010.patch.2.txt,
SOLR-1925.Mattmann.053010.patch.3.txt, SOLR-1925.Mattmann.053010.patch.txt, SOLR-1925.Mattmann.061110.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