lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (LUCENE-5454) SortField for SortedSetDV
Date Fri, 21 Feb 2014 16:34:29 GMT


ASF subversion and git services commented on LUCENE-5454:

Commit 1570624 from [~steve_rowe] in branch 'dev/trunk'
[ ]

LUCENE-5454: intellij config

> SortField for SortedSetDV
> -------------------------
>                 Key: LUCENE-5454
>                 URL:
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: modules/other
>            Reporter: Robert Muir
>             Fix For: 4.8, 5.0
>         Attachments: LUCENE-5454.patch, LUCENE-5454.patch
> Currently, its not possible to sort by a sortedsetdv (e.g. a multi-valued field). So
the idea is to provide some comparators that let you do this: by choosing a selector (e.g.
min/max/median type stuff) that picks a value from the set as a representative sort value.
> The implementation is pretty simple, just actually wrap the SortedSet in a SortedDV that
does the selection, and re-use the existing TermOrdValComparator logic.
> One issue is that, with the current sortedset API only 'min' is a viable option because
its the only one that can be done in constant time. So this patch adds an optional extension
(RandomAccessOrds) for codecs that can support random access. I added this to the default
codec, diskdv, and direct, as they can all easily support it. While this could be useful for
other purposes (e.g. min/max as valuesource or whatever), i think its best to be optional
because it prevents some forms of encoding/compression.
> Anyway I'm targeting lucene/sandbox with this change... 

This message was sent by Atlassian JIRA

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

View raw message