lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Re: [jira] [Commented] (SOLR-2970) CSV ResponseWriter returns fields defined as stored=false in schema
Date Fri, 16 Dec 2011 21:27:30 GMT
Another useful addition would be to add a csv sort parameter if 
requesting all (*) fields -- a way to control the field order on export.


&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?



On 12/16/11 3:02 AM, Jan Høydahl (Commented) (JIRA) wrote:
>      [
> 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:
For additional commands, e-mail:

View raw message