[jira] [Updated] (SOLR-2731) CSVResponseWriter should optionally return numfound

2011-08-28 Thread Jon Hoffman (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jon Hoffman updated SOLR-2731:
--

Attachment: SOLR-2731-R1.patch

This new patch includes the csv style metaheader with "numFound,maxScore,start"

> 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-R1.patch, 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



[jira] [Commented] (SOLR-2731) CSVResponseWriter should optionally return numfound

2011-08-25 Thread Jon Hoffman (JIRA)

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

Jon Hoffman commented on SOLR-2731:
---

Simon,

Keep in mind that this additional header would only appear if you asked for it 
via a request parameter like "csv.metaheader=true".  Existing behavior would 
remain unchanged.  Is that still a problem?

> 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



[jira] [Commented] (SOLR-2731) CSVResponseWriter should optionally return numfound

2011-08-25 Thread Jon Hoffman (JIRA)

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

Jon Hoffman commented on SOLR-2731:
---

To be clear, I like the first option best.

> 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



[jira] [Commented] (SOLR-2731) CSVResponseWriter should optionally return numfound

2011-08-25 Thread Jon Hoffman (JIRA)

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

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



[jira] [Updated] (SOLR-2731) CSVResponseWriter should optionally return numfound

2011-08-25 Thread Jon Hoffman (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jon Hoffman updated SOLR-2731:
--

Attachment: SOLR-2731.patch

> 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



[jira] [Created] (SOLR-2731) CSVResponseWriter should optionally return numfound

2011-08-25 Thread Jon Hoffman (JIRA)
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.3, 3.1, 4.0
Reporter: Jon Hoffman
 Fix For: 3.1.1, 4.0, 3.3


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