[
https://issues.apache.org/jira/browse/SOLR-11836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16611275#comment-16611275
]
Yonik Seeley commented on SOLR-11836:
-------------------------------------
limit:-1 should work fine for JSON Facets.
bq. Also when I sent -1 directly to the JSON facet API it didn't return
results. I'll need to dig into why.
Perhaps other code in the middle (i.e. before it gets to the JSON Facet code)
manipulates that value and messes it up?
TestJsonFacets randomly specifies limit:-1 so this should be well tested too:
https://github.com/apache/lucene-solr/blob/master/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java#L935
> 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]