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

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

Dennis Gove created SOLR-7548:
---------------------------------

             Summary: 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
             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