Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 33548 invoked from network); 19 Aug 2008 10:42:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Aug 2008 10:42:39 -0000 Received: (qmail 63711 invoked by uid 500); 19 Aug 2008 10:42:34 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 63667 invoked by uid 500); 19 Aug 2008 10:42:33 -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 63655 invoked by uid 99); 19 Aug 2008 10:42:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2008 03:42:33 -0700 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, 19 Aug 2008 10:41:45 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54870234C1B8 for ; Tue, 19 Aug 2008 03:41:44 -0700 (PDT) Message-ID: <1319097832.1219142504345.JavaMail.jira@brutus> Date: Tue, 19 Aug 2008 03:41:44 -0700 (PDT) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Resolved: (LUCENE-1334) Term improvement In-Reply-To: <942697388.1215797191872.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless resolved LUCENE-1334. ---------------------------------------- Resolution: Fixed Thanks DM! > Term improvement > ---------------- > > Key: LUCENE-1334 > URL: https://issues.apache.org/jira/browse/LUCENE-1334 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Affects Versions: 2.3.1 > Environment: all > Reporter: DM Smith > Assignee: Michael McCandless > Priority: Trivial > Fix For: 2.4 > > Attachments: LUCENE-1334.txt > > > Term is designed for reuse of the supplied filter, to minimize intern(). > One of the common use patterns is to create a Term with the txt field being an empty string. > To simplify this pattern and to document it's usefulness, I suggest adding a constructor: > public Term(String fld) > with the obvious implementation > and use it throughout core and contrib as a replacement. -- 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