You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2015/03/09 18:25:38 UTC

[jira] [Updated] (SOLR-7208) CSV response support for returning same column name multiple times

     [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org