root/gs2-extensions/video-and-audio/trunk/src/opt/Terrier/README.txt @ 26191

Revision 26191, 1.4 KB (checked in by jmt12, 7 years ago)

Forgot that I also updated the JSP for the simple results to support images and video (and look prettier for screenshots in general)

Line 
1===== Image and Video support for Terrier =====
2
3==== Installation Instructions ====
4
51. Copy the two document plugins into Terrier:
6
7cd <greenstone>/ext/video-and-audio/opt/Terrier/
8cp *Document.java <terrier>/src/core/org/terrier/indexing/
9
102. Recompile:
11
12cd <terrier>
13ant
14
153. Edit the configuration to include the new document plugins. Your usage may vary depending on what type of Terrier installation you are setting up, but I'll show the example of the configuration for a SimpleFileIndexer installation - available as part of the parallel-building extension:
16
17cd <terrier>/etc/
18emacs terrier.properties
19###################################################################
20#SimpleFileCollection specific properties
21###################################################################
22trec.collection.class=SimpleFileCollection
23##use this to define parsers for know file extensions
24indexing.simplefilecollection.extensionsparsers=txt:FileDocument, pdf:PDFDocument, html:TaggedDocument,htm:TaggedDocument,xhtml:TaggedDocument,xml:TaggedDocument, jpg:ImageDocument, ts:VideoDocument
25
264. Overwrite the simple results JSP file in order to support images and video:
27
28cp <gsdl>/ext/video-and-audio/opt/Terrier/results.jsp <terrier>/src/webapps/simple/results.jsp
29
305. Build your index including some JPG and TS files.
31
326. Test the index in your preferred tool, and marvel at the beautiful image and video metadata (or thumbnails, if you are in a web interface)
Note: See TracBrowser for help on using the browser.