Last change
on this file since 26191 was 26191, checked in by jmt12, 12 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)
|
File size:
1.4 KB
|
Rev | Line | |
---|
[26186] | 1 | ===== Image and Video support for Terrier =====
|
---|
| 2 |
|
---|
| 3 | ==== Installation Instructions ====
|
---|
| 4 |
|
---|
| 5 | 1. Copy the two document plugins into Terrier:
|
---|
| 6 |
|
---|
| 7 | cd <greenstone>/ext/video-and-audio/opt/Terrier/
|
---|
| 8 | cp *Document.java <terrier>/src/core/org/terrier/indexing/
|
---|
| 9 |
|
---|
| 10 | 2. Recompile:
|
---|
| 11 |
|
---|
| 12 | cd <terrier>
|
---|
| 13 | ant
|
---|
| 14 |
|
---|
| 15 | 3. 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 |
|
---|
| 17 | cd <terrier>/etc/
|
---|
| 18 | emacs terrier.properties
|
---|
| 19 | ###################################################################
|
---|
| 20 | #SimpleFileCollection specific properties
|
---|
| 21 | ###################################################################
|
---|
| 22 | trec.collection.class=SimpleFileCollection
|
---|
| 23 | ##use this to define parsers for know file extensions
|
---|
| 24 | indexing.simplefilecollection.extensionsparsers=txt:FileDocument, pdf:PDFDocument, html:TaggedDocument,htm:TaggedDocument,xhtml:TaggedDocument,xml:TaggedDocument, jpg:ImageDocument, ts:VideoDocument
|
---|
| 25 |
|
---|
[26191] | 26 | 4. Overwrite the simple results JSP file in order to support images and video:
|
---|
[26186] | 27 |
|
---|
[26191] | 28 | cp <gsdl>/ext/video-and-audio/opt/Terrier/results.jsp <terrier>/src/webapps/simple/results.jsp
|
---|
| 29 |
|
---|
| 30 | 5. Build your index including some JPG and TS files.
|
---|
| 31 |
|
---|
| 32 | 6. 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 repository browser.