Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
<?xml version="1.0" encoding="UTF-8"?>
  <!-- <parsers etc.../> -->
      <!-- which port to start the server on. If you specify a range,
          e.g. 9995-9998, TikaServerCli will start four forked servers,
          one at each port.  You can also specify multiple forked servers
          via a comma-delimited value: 9995,9997.

      <!-- if specified, this will be the id that is used in the
          /status endpoint and elsewhere.  If an id is specified
          and more than one forked processes are invoked, each process
          will have an id followed by the port, e.g my_id-9998. If a
          forked server has to restart, it will maintain its original id.
          If not specified, a UUID will be generated.
      <!-- whetherOrigin orURL notfor tocors allow CORS requests. Set to 'ALL*' if you
          want to allow all CORS requests. SetLeave to NONEblank or leaveremove blankelement
           if you do not want to enable CORS. -->
      <!-- which digests to calculate, comma delimited (e.g. md5,sha256);
          optionally specify encoding followed by a colon (e.g. "sha1:32").
          Can be empty if you don't want to calculate a digest -->
      <!-- how much to read to memory during the digest phase before
          spooling to disc...only if digest is selected -->
      <!-- request URI log level 'debug' or 'info' -->
      <!-- whether or not to return the stacktrace in the data returned 
           to the user when a parse exception happens-->
      <!-- If set to 'true', this runs tika server "in process"
          in the legacy 1.x mode.
          This means that the server will be susceptible to infinite loops
          and crashes.
          If set to 'false', the server will spawn a forked
          process and restart the forked process on catastrophic failures
          (this was called -spawnChild mode in 1.x).
          noFork=false is the default in 2.x
      <!-- maximum time to allow per parse before shutting down and restarting
          the forked parser. Not allowed if noFork=true. -->
      <!-- maximum amount of time to wait for a forked process to
          start up.
          Not allowed if noFork=true. -->
      <!-- maximum number of times to allow a specific forked process
          to be restarted.
          Not allowed if noFork=true. -->
      <!-- maximum files to parse per forked process before
          restarting the forked process to clear potential
          memory leaks.
          Not allowed if noFork=true. -->
      <!-- if you want to specify a specific javaPath for
          the forked process.  This path should end
          the application 'java', e.g. /my/special-java/java
          Not allowed if noFork=true. -->
      <!-- jvm args to use in the forked process -->
      <!-- this must be set to true for any handler that uses a fetcher or emitter.  These pipes features are inherently unsecure because
           the client has the same read/write access as the tika-server process.  Implementers must secure Tika server so that only their clients can reach it.
           A byproduct of setting this to true is that the /status endpoint is turned on -->
      <!-- you can optionally select specific endpoints to turn on/load.  This can improve resource usage and decrease your attack surface.
           If you want to access the status endpoint, specify it here or set unsecureFeatures to true -->