lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Rosenthal (JIRA)" <>
Subject [jira] [Commented] (SOLR-2731) CSVResponseWriter should optionally return numfound
Date Thu, 25 Aug 2011 18:15:29 GMT


Simon Rosenthal commented on SOLR-2731:

In addition to loading CSV results into a spreadsheet, I often use CSV as a quick-and-dirty
way of dumping the contents of an index to be re-read into Solr, and adding lines which would
need manual removal would be rather inconvenient.

I'd go for option 4, with the comment symbol and result metadata on one line. org.apache.commons.csv
has an option (which is not currently enabled in the CSVRequestHandler) to recognize and discard
comment lines - adding a request parameter to the handler to recognize comment lines would
be straightforward, and would at least solve my use case, though I admit not all others.


> CSVResponseWriter should optionally return numfound
> ---------------------------------------------------
>                 Key: SOLR-2731
>                 URL:
>             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:


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

View raw message