source: trunk/gsdl3/packages/vishnu/README@ 8412

Last change on this file since 8412 was 8412, checked in by kjdon, 20 years ago

* empty log message *

  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 KB
Line 
1Vishnu package for ...
2
3If you are running this as part of Greenstone, just installing Greenstone will install Vishnu.
4
5If you want to run it standalone:
6
7The environment variable JAVA_HOME needs to be set.
8You need to have MG installed - this should be the version from Greenstone, and you need the mg.jar file in your CLASSPATH and the libmgjni.so in your LD_LIBRARY_PATH.
9You need the lucene 1.4 or higher jar file in your CLASSPATH.
10Other jar files needed in CLASSPATH: xercesImpl.jar, servlet.jar.
11These jar files all come as part of the Greenstone download. Some in gsdl3/lib/java, and servlet.jar in gsdl3/comms/jakarta/tomcat/lib (when unpacked).
12
13Edit the src/vishnu Makefile/winMake.bat and uncomment the prefix for stand-alone vishnu.
14
15Then run the following (on both linux or windows)
16
17make
18make install
19
20
21COLLECTION BUILDING:
22
23Make a directory called collections inside the main vishnu directory. Inside this, create a new directory for your collection. The name of this directory is the collection identifier. Inside the collection directory create a new direcotry called import. Inside here put all the documents that you want in your collection. Documents must be plain text, xml or html.
24
25Then you can build the collection:
26
27Command line:
28java vishnu.builder.CollectionBuilder -collsHome (directory where collections live: path-to-vishnu/collections) -collection (directory name of collection) -name (descriptive name for collection) -description (collection description) -index ("mg" or "luc")
29
30If you want to use views, add the option "-use-views" to the above command. This will create a separate index for each sub-directory in the import folder, and you can search each sub-view independently.
31
32Using a GUI tool:
33java vishnu.builder.IndexerGUI
34
35Fill in the fields as appropriate, and click "Start indexing".
36
37Once the collection is built, you need to rename the building directory to index. Collections are built into the building directory, but served from the index directory. This allows you to serve a built collection while rebuilding.
38
39For collections in the Greenstone 3 context, you will need to create the files etc/collectionConfig.xml and index/buildConfig.xml.
40These should look like the following:
41
42etc/collectionConfig.xml:
43<collectionConfig>
44 <metadataList>
45 <metadata name="creator">creator's email address</metadata>
46 </metadataList>
47 <displayItemList>
48 <displayItem name='name' lang='en'>Collection name</displayItem>
49 <displayItem name='description' lang='en'>Collection description
50 </displayItem>
51 </displayItemList>
52</collectionConfig>
53
54index/buildConfig.xml:
55<buildConfig>
56 <metadataList/>
57 <serviceRackList>
58 <serviceRack name="Visualizer">
59 <engineType name="MG"/> <!-- or LUCENE, depending on how you built the collection -->
60 </serviceRack>
61 </serviceRackList>
62</buildConfig>
63
64Note that you cannot use views in the Greenstone context yet.
65
66RUNNING THE SERVLET:
67
68
69If you are running this standalone, you need to run a servlet container for VisServlet.
70We have provided an example configuration for use with Tomcat (version 4.1).
71
72Set the prefix in the src/vishnu Makefile to be ../.., then the servlet class and jar files will be installed in the correct places.
73The vishnu/web directory is setup to be the context directory for vishnu in Tomcat.
74You need to edit Tomcat's conf/server.xml file, and add in the context for vishnu. Add the following element after the tomcat root context element:
75
76<Context path="/vishnu" docBase="full-path-to-vishnu/web" debug="1" reloadable="true"><Resources allowLinking='true'/></Context>
77(replacing "full path-to-vishnu" with the path to the vishnu directory.)
78Edit the vishnu/web/WEB-INF/web.xml file and put in the correct path to your collections directory.
79
80The vishnu.jar file needs to be in your CLASSPATH, and make sure that Tomcat is using your CLASSPATH.
81
82RUNNING THE APPLET:
83
84The file vishnu/web/index.html is an introductory page about vishnu, and contains the applet. Make sure that the library parameter has the correct address for your visualiser servlet. The default is http://localhost:8080/vishnu/server. This will be correct if you have installed Tomcat to use port 8080, and have set the vishnu servlet up as described above. But note, if you are using Mozilla, it may not like localhost here, so if you have problems, try putting the full name of the server running Tomcat in place of localhost.
85
86If you are running Tomcat as described above, you can view this index file at http://localhost:8080/vishnu/index.html
Note: See TracBrowser for help on using the repository browser.