You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "minh truong (JIRA)" <ji...@apache.org> on 2017/08/14 15:26:00 UTC
[jira] [Created] (SOLR-11236) Facet allow paging and make
bucketSizeLimit as optional parameter
minh truong created SOLR-11236:
----------------------------------
Summary: Facet allow paging and make bucketSizeLimit as optional parameter
Key: SOLR-11236
URL: https://issues.apache.org/jira/browse/SOLR-11236
Project: Solr
Issue Type: New Feature
Security Level: Public (Default Security Level. Issues are Public)
Components: streaming expressions
Affects Versions: 6.6
Reporter: minh truong
FacetStream in streaming expression do not have paging capability and do not have the ability to retrieve all the facet.
To resolve the bucketSizeLimit to be optional:
1. The "\lucene-solr\solr\solrj\src\java\org\apache\solr\client\solrj\io\stream\FacetStream.java" the constructor with StreamExpression parameters, comment out the checking of limit must be greater zero and when it is exception assign a negative value to bucketSizeLimit.
2. The method read() update the logic to "if(index < tuples.size() && (index < bucketSizeLimit || bucketSizeLimit <= 0))"
To add paging to facetStream:
1. create a private variable call startAt as int (dafault 0).
2. retrieve the value from StreamExpression variable and start the value to startAt.
3. overwrite the method writeMap from tupleStream and in the method in the try catch before the for loop. Set index with startAt and set bucketSizeLimit to bucketSizeLimit plus startAt if(bucketSizeLimit is a positive integer).
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org