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

MemoryIndex.toString is broken if you enable payloads

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.1, 6.0.1, 7.0
    • Fix Version/s: 6.2
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      Noticed this as we use Luwak which creates a MemoryIndex(true, true) storing both offsets and payloads (though in reality we never put any payloads in it).

      We used to use MemoryIndex.toString() for debugging and noticed it broke in Lucene 5.x and beyond. I think LUCENE-6155 broke it when it added support for payloads?

      Creating default memoryindex (as all the tests currently do) works fine, as does one with just offsets, it is just the payload version which is broken.

        Attachments

        1. LUCENE-7340.patch
          4 kB
          David Smiley
        2. LUCENE-7340.patch
          5 kB
          David Smiley
        3. LUCENE-7340.diff
          4 kB
          Daniel Collins
        4. LUCENE-7340.diff
          4 kB
          Daniel Collins

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dancollins Daniel Collins
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: