lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "minh truong (JIRA)" <>
Subject [jira] [Created] (SOLR-11236) Facet allow paging and make bucketSizeLimit as optional parameter
Date Mon, 14 Aug 2017 15:26:00 GMT
minh truong created SOLR-11236:

             Summary: Facet allow paging and make bucketSizeLimit as optional parameter
                 Key: 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\"
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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message