Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 60610 invoked from network); 2 Jun 2009 13:12:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jun 2009 13:12:20 -0000 Received: (qmail 32608 invoked by uid 500); 2 Jun 2009 13:12:31 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 32540 invoked by uid 500); 2 Jun 2009 13:12:31 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 32532 invoked by uid 99); 2 Jun 2009 13:12:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 13:12:31 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 13:12:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 68A57234C04C for ; Tue, 2 Jun 2009 06:12:07 -0700 (PDT) Message-ID: <1523812726.1243948327427.JavaMail.jira@brutus> Date: Tue, 2 Jun 2009 06:12:07 -0700 (PDT) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Resolved: (LUCENE-1665) Remove SortField.AUTO In-Reply-To: <1285423590.1243456425606.JavaMail.jira@brutus> 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-1665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless resolved LUCENE-1665. ---------------------------------------- Resolution: Fixed > Remove SortField.AUTO > --------------------- > > Key: LUCENE-1665 > URL: https://issues.apache.org/jira/browse/LUCENE-1665 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 2.9 > > > I'd like to remove SortField.AUTO... it's dangerous for Lucene to > guess the type of your field, based on the first term it encounters. > It can easily be wrong, and, whether it's wrong or right could > suddenly change as you index different documents. > It unexepctedly binds SortField to needing an IndexReader to do the > guessing. > It's caused various problems in the past (most recently, for me on > LUCENE-1656) as we fix other issues/make improvements. > I'd prefer that users of Lucene's field sort be explicit about the > type that Lucene should cast the field to. Someday, if we have > optional strong[er] typing of Lucene's fields, such type information > would already be known. But in the meantime, I think users should be > explicit. -- 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: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org