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

IndexWriter shouldn't accept broken offsets

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.0
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: