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

Regression in PDF keywords extraction since 1.23

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.24
    • Component/s: None
    • Labels:
      None

      Description

      Hey team.

       

      I have a unit test which is not passing anymore with Tika 1.23. Code is https://github.com/dadoonet/fscrawler/blob/master/tika/src/test/java/fr/pilato/elasticsearch/crawler/fs/tika/TikaDocParserTest.java#L430-L496.

       

      Basically, this line is now failing:

      assertThat(doc.getMeta().getKeywords(), containsInAnyOrder("keyword1", " keyword2"));

       

      But also this line which seems related:

      assertThat(raw, hasEntry("dc:subject", "keyword1, keyword2"));

       

      This line is failing as well although not related I think:

      assertThat(raw, hasEntry("created", "2016-07-07T08:37:42Z"));

       

      I'm not sure if it's a bug or expected. If the later, I'll simply change my test suite.

       

        Attachments

        1. test.pdf
          99 kB
          David Pilato

          Activity

            People

            • Assignee:
              tallison Tim Allison
              Reporter:
              dadoonet David Pilato
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: