lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] [Commented] (SOLR-3434) CSVRequestHandler does not trim header when using header=true&trim=true
Date Fri, 04 May 2012 16:26:48 GMT


Yonik Seeley commented on SOLR-3434:

bq. My opinion is: 'trim' should be true by default, and certainly apply to both data and
header, although I understand it would break backward-compatibility.

IMO, we should always trim the headers - the CSV loader certainly never intended to support
fieldnames with leading or trailing whitespace.... this was simply just a case of lacking
any examples that added whitespace.

As for your other problem, it seems like we also need a skipLinesAfterHeader option?
> CSVRequestHandler does not trim header when using header=true&trim=true
> -----------------------------------------------------------------------
>                 Key: SOLR-3434
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 3.6
>         Environment: Linux
>            Reporter: david babits
>              Labels: CSV,, header, separator
> when using {{header=true&trim=true}} the field names in the header row are not trimmed.
> this is consistent with the documentation, but that doesn't mean it makes sense.
> would be good to change this so trim=true also applied to the header row (at least by

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message