Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tika Wiki" for change notification.
The "TikaJAXRS" page has been changed by domtheo: http://wiki.apache.org/tika/TikaJAXRS?action=diff&rev1=12&rev2=13 = Introduction = - This page is documentation on tika's JSR 311 network server, tika-server. The server package uses the [[http://cxf.apache.org/|Apache CXF]] framework that provides an implementation of JAX-RS for Java. The Tika server component builds to a standalone package in Tika, tika-server. Releases of Tika version 1.2 and beyond will ship with tika-server enabled, but to get the software before then and to experiment you can follow the below steps: + This page is documentation on tika's JSR 311 network server, tika-server. The server package uses the framework that provides an implementation of JAX-RS for Java. The Tika server component builds to a standalone package in Tika, tika-server. Releases of Tika version 1.2 and beyond will ship with tika-server enabled, but to get the software before then and to experiment you can follow the below steps: - 1. svn export http://svn.apache.org/repos/asf/tika/trunk/tika-server + 1. svn export 1. mvn install 1. java -jar target/tika-server-X.Y.jar You will then see a message such as the following: - + [[http://www.propertykita.com/rumah.html|Rumah Dijual]] + [[http://vamostech.com/gps-tracking|GPS Tracker]] + [[http://vamostech.com/gps-tracking|GPS Tracking]] + [[http://www.pintuvariasi.com|Pintu Aluminium]] + [[http://www.trimasjaya.com/pintu-dan-jendela/index.html|Pintu dan Jendela]] {{{ $ java -jar target/tika-server-1.2-SNAPSHOT.jar Apr 4, 2012 7:48:49 AM org.apache.tika.server.TikaServerCli main INFO: Starting Tikaserver ${project.version} Apr 4, 2012 7:48:50 AM org.apache.cxf.endpoint.ServerImpl initDestination - INFO: Setting the server's publish address to be http://localhost:9998/ + INFO: Setting the server's publish address to be 2012-04-04 07:48:50.316:INFO:oejs.Server:jetty-7.x.y-SNAPSHOT 2012-04-04 07:48:50.375:INFO:oejs.AbstractConnector:Started SelectChannelConnector@localhost:9998 STARTING 2012-04-04 07:48:50.399:INFO:oejsh.ContextHandler:started o.e.j.s.h.ContextHandler{,null} @@ -46, +50 @@ Some Example calls with cURL: {{{ - $ curl -X PUT -d @zipcode.csv http://localhost:9998/meta --header "Content-Type: text/csv" - $ curl -T price.xls http://localhost:9998/meta + $ curl -X PUT -d @zipcode.csv" + $ curl -T price.xls }}} Returns: @@ -65, +69 @@ === Get HELLO message back === {{{ - $ curl -X GET http://localhost:9998/tika + $ curl -X GET This is Tika Server. Please PUT }}} === Get the Text of a Document === {{{ - $ curl -X PUT -d @GeoSPARQL.pdf http://localhost:9998/tika --header "Content-type: application/pdf" + $ curl -X PUT -d @GeoSPARQL.pdf --header "Content-type: application/pdf" - $ curl -T price.xls http://localhost:9998/tika + $ curl -T price.xls }}} == Unpacker Resource == {{{ @@ -85, +89 @@ === PUT zip file and get back met file zip === {{{ - $ curl -X PUT -d @foo.zip http://localhost:9998/unpacker --header "Content-type: application/zip" + $ curl -X PUT -d @foo.zip --header "Content-type: application/zip" }}} === PUT doc file and get back met file tar === {{{ - $ curl -T Doc1_ole.doc -H "Accept: application/x-tar" http://localhost:9998/unpacker > /var/tmp/x.tar + $ curl -T Doc1_ole.doc -H "Accept: application/x-tar"> /var/tmp/x.tar }}} == "All" resource == Get text, metadata and attachements in one request. {{{ - $ curl -T Doc1_ole.doc http://localhost:9998/all > /var/tmp/x.zip + $ curl -T Doc1_ole.doc }}} Text is stored in {{{__TEXT__}}} file, metadata cvs in {{{__METADATA__}}}. Use "accept" header if you want TAR output.
