You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2014/07/01 15:16:26 UTC

[jira] [Commented] (LUCENE-5794) Add a slow random-access ords wrapper

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org