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

LineDocSource should assign stable IDs; docdate field should be NumericField

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.4, 3.1, 4.0-ALPHA
    • modules/benchmark
    • None
    • 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

        1. LUCENE-2826.patch
          11 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: