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

MemoryIndex.toString is broken if you enable payloads

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.4.1, 6.0.1, 7.0
    • 6.2
    • modules/highlighter
    • None
    • 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.diff
          4 kB
          Daniel Collins
        2. LUCENE-7340.diff
          4 kB
          Daniel Collins
        3. LUCENE-7340.patch
          5 kB
          David Smiley
        4. LUCENE-7340.patch
          4 kB
          David Smiley

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: