Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1334

Term improvement

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.4
    • Component/s: core/index
    • Labels:
      None
    • Environment:

      all

    • Lucene Fields:
      New

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              dmsmith DM Smith

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment