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

Term improvement

    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

        1. LUCENE-1334.txt
          13 kB
          DM Smith

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              dmsmith DM Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: