Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 75700 invoked from network); 30 May 2010 17:01:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 May 2010 17:01:02 -0000 Received: (qmail 21385 invoked by uid 500); 30 May 2010 17:01:01 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 21336 invoked by uid 500); 30 May 2010 17:01:00 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 21329 invoked by uid 99); 30 May 2010 17:01:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 May 2010 17:01:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 May 2010 17:00:58 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4UH0bO6026237 for ; Sun, 30 May 2010 17:00:37 GMT Message-ID: <1314026.73731275238837257.JavaMail.jira@thor> Date: Sun, 30 May 2010 13:00:37 -0400 (EDT) From: "Chris A. Mattmann (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (SOLR-1925) CSV Response Writer In-Reply-To: <24380276.34611274796264499.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12873457#action_12873457 ] Chris A. Mattmann commented on SOLR-1925: ----------------------------------------- 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-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org