Lucene - Core
  1. Lucene - Core
  2. LUCENE-2826

LineDocSource should assign stable IDs; docdate field should be NumericField

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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...
      1. LUCENE-2826.patch
        11 kB
        Michael McCandless

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development