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

Adrien Grand commented on LUCENE-5794:
--------------------------------------

Yes. If you have an algorithm that works better on random-access ords, I'd like 
to write it using the RandomAccessOrds class and then still make it usable on 
codecs that don't have random-access ords by using this slow wrapper. If your 
documents only have a couple of values, this is probably OK anyway. I think we 
just need to make sure this wrapping is explicit in order to avoid worst-cases?


> Add a slow random-access ords wrapper
> -------------------------------------
>
>                 Key: LUCENE-5794
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5794
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 5.0, 4.10
>
>         Attachments: LUCENE-5794.patch
>
>
> Even if you are using an algorithm that requires random access (eg. sorting 
> based on the maximum value), it might still be ok to allow for it 
> occasionally on a codec that doesn't support random access like 
> MemoryDocValuesFormat by having a slow random-access wrapper. This slow 
> wrapper would need to be enabled explicitely. This would allow to have 
> algorithms that are optimized on random-access codecs but still work in the 
> general case.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to