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

New tool for creating a deterministic index

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0, 8.9
    • general/tools
    • None
    • New

    Description

      Lucene's index is segmented, and sometimes number of segments and documents arrangement greatly impact performance.

      Given a stable index sort, our team create a tool that records document arrangement (called index map) of an index and rearrange another index (consists of same documents) into the same structure (segment num, and documents included in each segment).

      This tool could be also used in lucene benchmarks for a faster deterministic index construction (if I understand correctly lucene benchmark is using a single thread manner to achieve this).

       

      We've already had some discussion in email

      https://markmail.org/message/lbtdntclpnocmfuf

      And I've implemented the first method, using IndexWriter.addIndexes and a customized FilteredCodecReader to achieve the goal. The index construction time is about 25min and time executing this tool is about 10min.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            zhai7631 Patrick Zhai
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 40m
                2h 40m

                Slack

                  Issue deployment