[ 
https://issues.apache.org/jira/browse/SOLR-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091111#comment-13091111
 ] 

Jon Hoffman commented on SOLR-2731:
-----------------------------------

I like maintaining consistency with the CSV format because you don't have to 
reinvent any parsing logic.   It should be pretty easy for the client developer 
to read off the first two lines and parse with the same tool that's used to 
parse the rest of the document.  Preferences around separator, newline, etc can 
be reused (except maybe this meta header should always have a column name 
header).

What should the parameter be called?  csv.metaheader?

> CSVResponseWriter should optionally return numfound
> ---------------------------------------------------
>
>                 Key: SOLR-2731
>                 URL: https://issues.apache.org/jira/browse/SOLR-2731
>             Project: Solr
>          Issue Type: Improvement
>          Components: Response Writers
>    Affects Versions: 3.1, 3.3, 4.0
>            Reporter: Jon Hoffman
>              Labels: patch
>             Fix For: 3.1.1, 3.3, 4.0
>
>         Attachments: SOLR-2731.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> an optional parameter "csv.numfound=true" can be added to the request which 
> causes the first line of the response to be the numfound.  This would have no 
> impact on existing behavior, and those who are interested in that value can 
> simply read off the first line before sending to their usual csv parser.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to