Issue Details (XML | Word | Printable)

Key: LUCENE-1334
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Michael McCandless
Reporter: DM Smith
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

Term improvement

Created: 11/Jul/08 05:25 PM   Updated: 11/Oct/08 12:49 PM
Return to search
Component/s: Index
Affects Version/s: 2.3.1
Fix Version/s: 2.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LUCENE-1334.txt 2008-07-11 08:43 PM DM Smith 13 kB
Environment: all

Lucene Fields: New
Resolution Date: 19/Aug/08 10:40 AM


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
DM Smith added a comment - 11/Jul/08 08:43 PM
patch for the issue

Michael McCandless added a comment - 19/Aug/08 10:36 AM
Patch looks good, thanks DM! I'll commit shortly.

Michael McCandless added a comment - 19/Aug/08 10:40 AM
Thanks DM!