lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <>
Subject [jira] [Commented] (LUCENE-5794) Add a slow random-access ords wrapper
Date Tue, 01 Jul 2014 13:16:26 GMT


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:
>             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

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

View raw message