Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2349

Try to match digests when finding equivalent embedded files in tika-eval Compare

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.15, 2.0.0
    • tika-eval
    • None

    Description

      In tika-eval Compare, there's some code that tries to find equivalent embedded files. The challenge is that embedded resource paths may contain different names in different versions of Tika, or they may be at different offsets within the List<Metadata>. In the most recent regression run, we had several cases where the {{List<Metadata>}}s were the same size, but the attachments were ordered differently.

      Instead of relying solely on position, let's try to match digest keys first, then back off to path names, and finally, back off equal locations in the list, if the lists have the same size.

      More areas for improvement will exist for this bit of code...

      Attachments

        Activity

          People

            Unassigned Unassigned
            tallison Tim Allison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: