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

Maulin commented on SOLR-16556:
-------------------------------

Hi [~jbernste] ,

Thanks for reviewing this and providing feedback.

Your understanding is correct about the start parameter. tuples will start 
flowing from the start param.

But line 229 has nothing to do with the start parameter. This for loop (line 
229 to 232) polls top rows records.

If you notice its using poll method (line 230) to poll records from "top" 
priority queue.


Here is the logic.

    /*   1. Read the stream and add N (rows+start) tuples into priority Queue.
     *   2. If new tuple from stream is greater than Tuple in 'top' priority 
Queue, replace tuple in priority Queue by new tuple.
     *   3. Add required (specified by rows param) into 'topList' Queue.
     */

Please let me know if you need more clarification on this.

Regards,

Maulin  

> Solr stream expression: Implement Page Streaming Decorator to allow results 
> to be displayed with pagination.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-16556
>                 URL: https://issues.apache.org/jira/browse/SOLR-16556
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: streaming expressions
>            Reporter: Maulin
>            Priority: Major
>              Labels: Streamingexpression, decorator, paging
>         Attachments: Page Decorator Performance Reading.xlsx
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Solr stream expression: Implement Page Streaming Decorator to allow results 
> to be displayed with pagination.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to