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

contrib/benchmark assumes Locale.US for parsing dates in Reuters collection

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.1
    • None
    • None

    Description

      SimpleDateFormat used for parsing dates in Reuters documents is instantiated without specifying a locale. So it is using the default locale. If that happens to be US, it will work. But for another locale a parse exception is likely.

      Affects both StandardBenchmarker and ReutersDocMaker.

      Fix is trivial - specify Locale.US for SimpleDateFormat's constructor.

      Attachments

        Issue Links

          Activity

            People

              doronc Doron Cohen
              doronc Doron Cohen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: