[
https://issues.apache.org/jira/browse/SOLR-7208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man updated SOLR-7208:
---------------------------
Description:
the CSV response writer will not currenlty generate CSV output in which 2
columns have identical names, ie, in the techproducts example
{{wt=csv&fl=id,name,id,manu_id_s}} generates a CSV file with only 3 columns
(id, name, manu_id_s)
A work around for people who really want the same data to come back in 2 diff
columns is to use fl field aliasing:
{{wt=csv&fl=id,name,id_again:id,manu_id_s}} which will produce a redundent "id"
column using the column name "id_again"
there is no known workarround to get 2 columns in the CSV output with the same
name (regardless of wether they come from the same original field or
transformer)
was:
Hi tried to get CSV response with duplicate field in select.
Ex : fl = name,age,no,name
It will return only name,age,no in CSV. Duplicate column name is missing in
response.
Need help to fix this issue.
Summary: CSV response support for returning same column name multiple
times (was: Duplicate column in search not supported)
tweaked summary & description wording to clarify this as a feature request, not
a "request for help"
noted work around for some situations
> CSV response support for returning same column name multiple times
> ------------------------------------------------------------------
>
> Key: SOLR-7208
> URL: https://issues.apache.org/jira/browse/SOLR-7208
> Project: Solr
> Issue Type: Task
> Affects Versions: 4.10.2
> Environment: Open Suse 14
> Reporter: Nagabhushan
> Priority: Trivial
>
> the CSV response writer will not currenlty generate CSV output in which 2
> columns have identical names, ie, in the techproducts example
> {{wt=csv&fl=id,name,id,manu_id_s}} generates a CSV file with only 3 columns
> (id, name, manu_id_s)
> A work around for people who really want the same data to come back in 2 diff
> columns is to use fl field aliasing:
> {{wt=csv&fl=id,name,id_again:id,manu_id_s}} which will produce a redundent
> "id" column using the column name "id_again"
> there is no known workarround to get 2 columns in the CSV output with the
> same name (regardless of wether they come from the same original field or
> transformer)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]