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

Robert Muir commented on LUCENE-6537:
-------------------------------------

Is it supposed to behave differently? I tried to benchmark the patch:
{noformat}
RuntimeError: results differ: ([], ["query=spanNear([body:image_flag, 
body:image_seal], 10, true) filter=None sort=None groupField=None 
hitCount=36851: self=spanNear([body:image_flag, body:image_seal], 10, true): 
wrong collapsed hit count: 7 vs 8\n  [([1142287], '1.2319405'), ([9531898], 
'1.1640743'), ([9087082], '1.1405553'), ([9531891], '1.0431801'), ([2841408, 
5764103], '1.0081179'), ([8760783], '0.99798584'), ([16470, 22367, 85504], 
'0.93125945')] vs [([1142287], '1.2319405'), ([9531898], '1.1640743'), 
([9087082], '1.1405553'), ([3979685], '1.077948'), ([9531891], '1.0431801'), 
([2841408, 5764103], '1.0081179'), ([8760783], '0.99798584'), ([16470, 22367], 
'0.93125945')]\n  [(1142287, '1.2319405'), (9531898, '1.1640743'), (9087082, 
'1.1405553'), (9531891, '1.0431801'), (2841408, '1.0081179'), (5764103, 
'1.0081179'), (8760783, '0.99798584'), (16470, '0.93125945'), (22367, 
'0.93125945'), (85504, '0.93125945')] vs [(1142287, '1.2319405'), (9531898, 
'1.1640743'), (9087082, '1.1405553'), (3979685, '1.077948'), (9531891, 
'1.0431801'), (2841408, '1.0081179'), (5764103, '1.0081179'), (8760783, 
'0.99798584'), (16470, '0.93125945'), (22367, '0.93125945')]"])
{noformat}

> Make NearSpansOrdered use lazy iteration
> ----------------------------------------
>
>                 Key: LUCENE-6537
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6537
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Priority: Minor
>         Attachments: LUCENE-6537.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to