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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: