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

remove linefiledocs usage from basetokenstreamtestcase

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.5
    • Component/s: general/test
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      LineFileDocs is slow, even to open. That's because it (very slowly) "skips" to a pseudorandom position into a 5MB gzip stream when you open it.

      There was a time when we didn't have a nice string generator for tests (TestUtil.randomAnalysisString), but now we do. And when it was introduced it found interesting new things that linefiledocs never found.

      This speeds up all the analyzer tests.

        Attachments

        1. LUCENE-9186.patch
          4 kB
          Robert Muir

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: