You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Joel Bernstein (JIRA)" <ji...@apache.org> on 2015/05/15 04:11:00 UTC

[jira] [Commented] (SOLR-7548) CloudSolrStream Limits Max Results to rows Param

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

Joel Bernstein commented on SOLR-7548:
--------------------------------------

The Streaming API really was designed to be paired with the /export handler, which always returns all rows. 

We should consider making the /export handler the default handler.

> CloudSolrStream Limits Max Results to rows Param
> ------------------------------------------------
>
>                 Key: SOLR-7548
>                 URL: https://issues.apache.org/jira/browse/SOLR-7548
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: Trunk
>            Reporter: Dennis Gove
>            Priority: Minor
>              Labels: Streaming
>             Fix For: Trunk
>
>
> The CloudSolrStream stream class accepts a set of params to be passed to the standard query handler. If the provided params doesn't include "rows=N" then maximum # of records returned by this stream is the configured default rows value (generally 10, but perhaps more). 
> As CloudSolrStream would generally be the first part of a larger set of stream expressions it seems counterintuitive to limit the first set by this value.
> This ticket is to address this so that either we set pass a param of rows=MAX where MAX is the max value we can pass (max int or max long I suppose) or make it so that default value is ignored when in a streaming context.
> Example:
> Imagine we have a collection "people" with 90 documents in it
> The following query would return at most 10 documents (assuming 10 is the default)
> {code}
> search(people,q=*:*,fl="id,name_s,gender_s,nick_s",sort="name_s desc")
> {code}
> The following query would return all documents
> {code}
> search(people,q=*:*,fl="id,name_s,gender_s,nick_s",sort="name_s desc",rows=100)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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