Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B30E311562 for ; Fri, 21 Feb 2014 16:34:37 +0000 (UTC) Received: (qmail 28130 invoked by uid 500); 21 Feb 2014 16:34:34 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 27775 invoked by uid 500); 21 Feb 2014 16:34:33 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 27697 invoked by uid 99); 21 Feb 2014 16:34:30 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 16:34:30 +0000 Date: Fri, 21 Feb 2014 16:34:29 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-5454) SortField for SortedSetDV MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-5454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13908486#comment-13908486 ] ASF subversion and git services commented on LUCENE-5454: --------------------------------------------------------- Commit 1570624 from [~steve_rowe] in branch 'dev/trunk' [ https://svn.apache.org/r1570624 ] LUCENE-5454: intellij config > SortField for SortedSetDV > ------------------------- > > Key: LUCENE-5454 > URL: https://issues.apache.org/jira/browse/LUCENE-5454 > 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 (v6.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org