Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.3.1
    • 2.4
    • core/index
    • None
    • all

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: