Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 1695 invoked from network); 16 Oct 2010 20:46:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Oct 2010 20:46:47 -0000 Received: (qmail 34460 invoked by uid 500); 16 Oct 2010 20:46:46 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 34415 invoked by uid 500); 16 Oct 2010 20:46:46 -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 34408 invoked by uid 99); 16 Oct 2010 20:46:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Oct 2010 20:46:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Oct 2010 20:46:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9GKkM7F027641 for ; Sat, 16 Oct 2010 20:46:23 GMT Message-ID: <747875.4701287261982337.JavaMail.jira@thor> Date: Sat, 16 Oct 2010 16:46:22 -0400 (EDT) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2671) Add sort missing first/last ability to SortField and ValueComparator In-Reply-To: <24072115.410131285538973069.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921760#action_12921760 ] Robert Muir commented on LUCENE-2671: ------------------------------------- bq. What part of the API is broken? DocTermsCreator bq. The assumptions about what is in the Map are are internal to a private member that can not be touched outside this ugly class. This is a public class. It is parameterized as T extends DocTerms, but {noformat} @Override public T create(IndexReader reader) throws IOException { {noformat} This is not true, it returns DocTermCreator.DocTermsImpl and gives an ugly cast {noformat} final T t = (T)new DocTermsImpl(bytes.freeze(true), docToOffset.getMutable()); return t; {noformat} The api doesn't look extensible to me, I'm surprised it works. I guess this is why the compiler complains. Granted i didnt take a lot of time to look it over, but the compiler warnings speak loudly enough in my favor. > Add sort missing first/last ability to SortField and ValueComparator > -------------------------------------------------------------------- > > Key: LUCENE-2671 > URL: https://issues.apache.org/jira/browse/LUCENE-2671 > Project: Lucene - Java > Issue Type: New Feature > Components: Search > Reporter: Ryan McKinley > Assignee: Ryan McKinley > Fix For: 4.0 > > Attachments: LUCENE-2671-caches.patch, LUCENE-2671-SortMissingLast.patch, LUCENE-2671-suppress-unchecked.patch > > > When SortField and ValueComparator use EntryCreators (from LUCENE-2649) they use a special sort value when the field is missing. > This enables lucene to implement 'sort missing last' or 'sort missing first' for numeric values from the FieldCache. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org