Changeset 26391 for gs3-extensions/fedora/README
- Timestamp:
- 2012-10-25T14:15:39+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/fedora/README
r26384 r26391 188 188 Deleting a Fedora GS3 collection is accomplished with the following 2 steps: 189 189 - Run the g2f-deletecol.pl script over the collection to be deleted. Assuming the collection is called fedora1, you'd run: 190 g2f-deletecol.pl -hostname localhost -port 8383 -password pounamu - removeold -collectdir /<GS3>/web/sites/localsite/collect fedora1190 g2f-deletecol.pl -hostname localhost -port 8383 -password pounamu -collectdir /<GS3>/web/sites/localsite/collect fedora1 191 191 - manually delete the Greenstone collection directory from the filesystem 192 192 193 194 To run this manually, 195 - first remove the pids from the GSearch index: 196 /<GS3>/packages/tomcat/webapps/fedoragsearch/client>/<GS3>/packages/tomcat/webapps/fedoragsearch/client/runRESTClient.sh localhost:8383 updateIndex deletePID greenstone:fedora1-HASH010313b14474bc72b296b15f 197 198 It will ask for the fedoragsearch username and password, which by default are fedoraAdmin and pounamu, respectively. 199 200 - then purge the necessary documents (pids) from the fedora repository: 201 /<GS3>/ext/fedora3/client/bin>./fedora-purge.sh localhost:8383 fedoraAdmin pounamu greenstone:fedora1-HASHe14e36cba08bd41c663237 http "purging" 202 203 - You can check it's all been deleted by visiting http://localhost:8383/fedora/search 204 and searching for: 205 206 greenstone:* 207 or greenstone:<colname>* 208 209 Visit http://localhost:8383/fedoragsearch/rest?operation=browseIndex 210 and browse the PID field 211 212 You can also visit http://localhost:8383/fedoragsearch/rest?operation=gfindObjects 213 then you can search for a query term by prefixing the index field to it, e.g ds.fulltext:computers 193 214 194 215 … … 222 243 - @tomcatshutdownport@ 223 244 - @fedorapassw@ 224 Except for the first, which needs to be set when running the Fedora extension's ant targets, all the remaining ones can be specified 245 - @indexwritelocktimeout@ 246 247 Except for the first, which needs to be set when running the Fedora extension's ant targets, all the remaining ones can be specified in Greenstone 3's toplevel build.properties. 225 248 226 249 … … 231 254 - adjust_war_files/fedoragsearch/FgsConfig/FgsConfigIndexTemplate/Lucene/foxmlToLucene.xslt 232 255 - adjust_war_files/fedoragsearch/FgsConfig/FgsConfigIndexTemplate/Lucene/foxmlToLuceneGenerated.xslt 256 - adjust_war_files/fedoragsearch/FgsConfig/FgsConfigIndexTemplate/Lucene/index.properties 233 257 - adjust_war_files/fedoragsearch/client/runRESTClient.sh 234 258 - adjust_war_files/fedoragsearch/client/runSOAPClient.sh 235 259 - adjust_war_files/fedoragsearch/client/runSOAPClient.bat 260 236 261 237 262 All these files will get copied into the same locations within <GS3>/packages/tomcat/webapps/fedoragsearch. The file fgsconfig-basic.properties.in will get copied as fgsconfig-basic.properties but with the previously-listed placeholder strings replaced. … … 333 358 Further datastreams and metadata sets can be indexed by adding similar namespace declarations and xml elements to these 2 XSLT files. 334 359 If the changes are not meant to apply for all Greenstone users, individual Greenstone users can add fields for indexing by making such changes to just the file fedoragsearch/FgsConfig/FgsConfigIndexTemplate/Lucene/foxmlToLuceneGenerated.xslt 360 361 362 d. By default, Lucene's lock obtain timeout is set to 0 in its properties file, which is not acceptable for all but the smallest documents. The lock timeout can be customised in build.properties and by default is set to 10000 (or 1000), which can be adjusted before starting the Fedora extension installation process. 363 364 The installation process will write out this property into GSearch's FgsConfig/FgsConfigIndexTemplate/Lucene/index.properties: 365 fgsindex.defaultWriteLockTimeout = 1000 366 367 When fedoragsearch then gets deployed, this value will be propagated into: 368 <GS3>/packages/tomcat/webapps/fedoragsearch/WEB-INF/classes/fgsconfigFinal/index/FgsIndex/index.properties 335 369 336 370
Note:
See TracChangeset
for help on using the changeset viewer.