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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to