Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B4B4F9DD0 for ; Fri, 16 Dec 2011 21:28:03 +0000 (UTC) Received: (qmail 9781 invoked by uid 500); 16 Dec 2011 21:28:02 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 9731 invoked by uid 500); 16 Dec 2011 21:28:02 -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 9724 invoked by uid 99); 16 Dec 2011 21:28:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2011 21:28:02 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of insight49@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2011 21:27:54 +0000 Received: by iapp10 with SMTP id p10so6941595iap.35 for ; Fri, 16 Dec 2011 13:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:disposition-notification-to:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=zUQcMEyDg758oHAj5fptbXTgiPdImDSgTx0Y6aDc1eU=; b=gQ2N9sStJ7cUTR3xTbwlt6W/tiA5XzIeun1O1d0Dh0FGFo2vEkWgWa0eyUsgJc5FDf H6bteNUCAnDkbABG/d6OD19FpGM6cFwcWbprptI+tlsUAMh3ejq5k8At7y2iAvMN+xjp AQHvl6FCoOrbzaltC/brptjuAufBNh87LOPT8= Received: by 10.50.185.138 with SMTP id fc10mr10981425igc.33.1324070854193; Fri, 16 Dec 2011 13:27:34 -0800 (PST) Received: from Admins-MacBook-Pro.local (S01060022b0b5471d.cg.shawcable.net. [68.146.15.77]) by mx.google.com with ESMTPS id wo4sm16482810igc.5.2011.12.16.13.27.32 (version=SSLv3 cipher=OTHER); Fri, 16 Dec 2011 13:27:33 -0800 (PST) Message-ID: <4EEBB7C2.2080006@gmail.com> Date: Fri, 16 Dec 2011 14:27:30 -0700 From: "insight49@gmail.com" Reply-To: insight49@gmail.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: dev@lucene.apache.org Subject: Re: [jira] [Commented] (SOLR-2970) CSV ResponseWriter returns fields defined as stored=false in schema References: <1428768719.19007.1324029750596.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1428768719.19007.1324029750596.JavaMail.tomcat@hel.zones.apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Another useful addition would be to add a csv sort parameter if requesting all (*) fields -- a way to control the field order on export. E.g. &wt=csv&fl=*&csv.fl.sort=alpha asc I've had cases where: a) I'm returning too many fields to explicitly define fl=field_J,field_Z,field_A,etc. b) WANTED all the fields returned (a great way to dump data to a spreadsheet) but wanted a more orderly csv field structure than the one returned. Is this possible? Thanks, Dan On 12/16/11 3:02 AM, Jan H�ydahl (Commented) (JIRA) wrote: > [ https://issues.apache.org/jira/browse/SOLR-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170876#comment-13170876 ] > > Jan H�ydahl commented on SOLR-2970: > ----------------------------------- > > Created SOLR-2974 for B) > > I see that today you can explicitly specify non-existing fields in field-list and they will all end up in the response, e.g.&wt=csv&fl=id,type,foo,nonexisting > > If this is useful in some cases then let's continue to support it - coupled with the improvement in SOLR-2974 > But the default case when "fl" is not specified, or specified as "*", CSV writer should output only the stored fields. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org