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

IndexWriter shouldn't accept broken offsets

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I think we should do this in 7.0 (not 6.x).

      Long ago we stopped accepting broken offsets (where the start offset
      for a token is before the start offset of the last token) in postings
      (LUCENE-4127), but we are still lenient with term vectors.

      I think we should also check for term vectors: this would let users
      know that their analysis chain is producing offsets that cannot be
      used properly at search time.

        Attachments

        1. LUCENE-7626.patch
          20 kB
          Michael McCandless
        2. LUCENE-7626.patch
          40 kB
          Michael McCandless

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: