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

LineDocSource should assign stable IDs; docdate field should be NumericField

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.4, 3.1, 4.0-ALPHA
    • Component/s: modules/benchmark
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Some small enhancements when indexing docs from a line doc source:

      • Assign docid by line number instead of by number-of-docs-indexed;
        this makes the resulting ID stable when using multiple threads
      • The docdate field is now indexed as a String (possible created
        through DateTools). I added two numeric fields: one that indexes
        .getTime() (= long msec) and another that indexes seconds since
        the day started. This gives us two numeric fields to play
        with...

        Attachments

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment