lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2731) CSVResponseWriter should optionally return numfound
Date Thu, 25 Aug 2011 16:09:31 GMT

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

Yonik Seeley commented on SOLR-2731:
------------------------------------

It seems like if we go down this road, it should somehow be a more generic mechanism (since
others will then want values like maxScore, etc).

Here are some alternatives:
{code}
numFound,maxScore,start
2038,1.414,100
id,score
doc1,1.3
doc2,1.1
doc3,1.05

numFound,2038,maxScore,1.414,start,100
id,score
doc1,1.3
doc2,1.1
doc3,1.05

numFound=2038,maxScore=1.414,start=100
id,score
doc1,1.3
doc2,1.1
doc3,1.05

#numFound=2038,maxScore=1.414,start=100
id,score
doc1,1.3
doc2,1.1
doc3,1.05

{code}

Perhaps the "numFound=2038,maxScore=1.414,start=100" would be the most human readable (and
maybe alternately commenting it if that's supported).
But the first option could be attractive since it's more in the spirit of CSV and might be
desirable if imported into excel for example.
Thoughts?


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


Mime
View raw message