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

Varun Thacker commented on SOLR-11836:
--------------------------------------

Hi Joel,

I checked FacetFieldMerger and saw this statement which is why I assumed doing 
the same thing in FacetStream would be the right thing to do. 
{code:java}
int lim = freq.limit >= 0 ? (int)freq.limit : Integer.MAX_VALUE;{code}
{quote}or example it's possible that the JSON API is pre-allocating one or more 
arrays of that size.
{quote}
If this is happening perhaps we should create another Jira as this would affect 
JSON Facet API users as well? 

> Use -1 in bucketSizeLimit to get all facets, analogous to the JSON facet API
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-11836
>                 URL: https://issues.apache.org/jira/browse/SOLR-11836
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: streaming expressions
>            Reporter: Alfonso Muñoz-Pomer Fuentes
>            Priority: Major
>              Labels: facet, streaming
>         Attachments: SOLR-11836.patch
>
>
> Currently, to retrieve all buckets using the streaming expressions facet 
> function, the {{bucketSizeLimit}} parameter must have a high enough value so 
> that all results will be included. Compare this with the JSON facet API, 
> where you can use {{"limit": -1}} to achieve this. It would help if such a 
> possibility existed.
> [Issue 11236|https://issues.apache.org/jira/browse/SOLR-11236] is related.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to