[ https://issues.apache.org/jira/browse/SOLR-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12873457#action_12873457 ]
Chris A. Mattmann edited comment on SOLR-1925 at 5/30/10 1:01 PM: ------------------------------------------------------------------ Hey Guys: Here are some samples on how to call it: This example queries Solr for children's hospital, turns on CSV output, and requests the fields site_id and agency_name {code} curl"http://localhost:8080/solr/select/?q=children%27s%20AND%20hospital&version=2.2&start=0&rows=10&indent=on&wt=csv&fl=site_id,id,agency_name" {code} This example queries Solr for children's hospital and turns on CSV output, requests the fields site_id and agency_name, and then changes the default delimeter to semi-colon (only in the context of this request) {code} curl"http://localhost:8080/solr/select/?q=children%27s%20AND%20hospital&version=2.2&start=0&rows=10&indent=on&wt=csv&fl=site_id,id,agency_name&delimeter=;" {code} This example queries Solr for children's hospital and turns on CSV output, requests the fields site_id and agency_name, and then specifies (by turning Excel off) that CR LF should be left inside of the fields and not replaced (only in the context of this request): {code} curl"http://localhost:8080/solr/select/?q=children%27s%20AND%20hospital&version=2.2&start=0&rows=10&indent=on&wt=csv&fl=site_id,id,agency_name&excel=false" {code} was (Author: chrismattmann): Hey Guys: Here are some samples on how to call it: This example queries Solr for children's hospital, turns on CSV output, and requests the fields site_id and agency_name {code} curl"http://localhost:8080/solr/select/?q=children%27s%20AND%20hospital&version=2.2&start=0&rows=10&indent=on&wt=csv&fl=site_id,id,agency_name" {code} This example queries Solr for children's hospital and turns on CSV output, requests the fields site_id and agency_name, and then changes the default delimeter to semi-colon (only in the context of this request) {code} curl"http://localhost:8080/solr211/select/?q=children%27s%20AND%20hospital&version=2.2&start=0&rows=10&indent=on&wt=csv&fl=site_id,id,agency_name&delimeter=;" {code} This example queries Solr for children's hospital and turns on CSV output, requests the fields site_id and agency_name, and then specifies (by turning Excel off) that CR LF should be left inside of the fields and not replaced (only in the context of this request): {code} curl"http://localhost:8080/solr211/select/?q=children%27s%20AND%20hospital&version=2.2&start=0&rows=10&indent=on&wt=csv&fl=site_id,id,agency_name&excel=false" {code} > 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.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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org