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

TikaCLI only reports internal meta models with --list-met-models

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8, 0.9, 0.10
    • 0.10
    • cli
    • None

    Description

      From TikaCLI.java

      for (Class<?> modelClass: modelClasses) {
      // we don't care about internal Tika met classes
      // if we do, then we can take this conditional out
      if (modelClass.getSimpleName().contains("Tika")) {
      System.out.println(modelClass.getSimpleName());

      The condition is the reverse from what the comment says and needs to be negated. The way it's written, it only returns the internal ones.

      java -jar tika-app-0.9.jar --list-met-models
      TikaMetadataKeys
      PROTECTED
      RESOURCE_NAME_KEY
      TikaMimeKeys
      MIME_TYPE_MAGIC
      TIKA_MIME_FILE

      Attachments

        Activity

          People

            Unassigned Unassigned
            a5sk4s Andreas Kemkes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: