Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-167

Large document metadata are stored incorrectly by MetaIndex

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.5
    • Component/s: .structures
    • Labels:
      None

      Description

      We observed corruption in meta index values when we tried to put variable length entries into the meta index. If you try to put an entry into the meta index that is longer than allowed, then either an exception should be thrown or the value cropped. In actual fact what happens is the value overwrites the next meta entry in the index.

      Input:
      docno text number
      "doc1" "The lazy cat" "1"
      "doc2" "jumped over the" "2"
      "doc3" "sleeping dog" "3"
      "doc4" "today" "4"

      Output (lengths 4,5,2)
      docno text number
      "doc1" "The l" "az"
      "doc2" "jumpe" "d "
      "doc3" "sleep" "in"
      "doc4" "today" "4 "

      As we can see, the text entry overruns into the number entry.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                craigm Craig Macdonald
                Reporter:
                richardm Richard McCreadie
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: