source: vlo/branches/vlo-3.0/UPGRADE @ 5076

Last change on this file since 5076 was 5076, checked in by Twan Goosen, 10 years ago

Undid removal of search icon (used in record page). Small update to UPGRADE file

File size: 6.9 KB
Line 
1----------------------------
2General upgrade instructions
3----------------------------
4
5Quick overview of the upgrade steps (for details see DEPLOY-README)
6
7- Unpack the VLO distribution tarball
8
9- Go to the 'war' directory
10- Unzip the vlo-solr-#.##.war in a new 'solr' directory
11- Unzip the vlo-web-app-#.##.war in a new 'vlo' directory
12
13- In the 'config' directory, adjust VloConfig.xml as needed (make a backup first);
14        make sure that the data roots are up-to-date
15- Make any further version specific adjustments as described in this document
16
17- Stop the Tomcat or at least the VLO web app and Solr applications
18- Replace the 'current' symlink with a link to location of the new VLO directory
19
20- If needed, flush the Solr index (by removing the data directory)
21- In 'bin', run the importer using the updated configuration file:
22    ./vlo_solr_importer.sh -c ../config/VloConfig.xml
23
24---------------------------
25Upgrading from 2.18 to 3.0
26---------------------------
27
28* In version 3.0, the context parameters for the VLO web application have changed, see
29the file META-INF/context.xml for examples. The following parameters are now being
30processed:     
31
32- eu.carlin.cmdi.vlo.config.location
33        Optional but recommended. Should point to the location of VloConfig.xml that
34        should be used. Replaces The previously available parameter 'externalConfig', which is
35        no longer supported.
36
37- eu.carlin.cmdi.vlo.solr.serverUrl
38        Optional. Configures the base URL of the SOLR instance to connect to.
39        Usage is not recommended, instead configure the Solr URL via VloConfig.xml (see
40        below).
41
42* New options have been added to the shared VLO configuration file VloConfig.xml
43(in vlo-3.0/config):
44
45- The 'length' attributes in list elements can be removed
46
47- The Solr endpoint has changed because it is now multicore. Change for example:
48
49        <solrUrl>http://localhost:8084/vlo_solr/</solrUrl>
50   
51into
52
53        <solrUrl>http://localhost:8084/vlo_solr/core0/</solrUrl>
54
55This also applies to the eu.carlin.cmdi.vlo.solr.serverUrl context parameter (see above).
56
57- The following elements should be added:
58
59        <!-- begin added in 3.0 -->
60
61        <collectionFacet>collection</collectionFacet>
62
63        <simpleSearchFacetFields>
64                <simpleSearchFacetField>language</simpleSearchFacetField>
65                <simpleSearchFacetField>resourceClass</simpleSearchFacetField>
66                <simpleSearchFacetField>genre</simpleSearchFacetField>
67                <simpleSearchFacetField>nationalProject</simpleSearchFacetField>
68        </simpleSearchFacetFields>
69
70        <!-- Fields shown in expanded search results on the search page -->
71        <searchResultFields>
72                <searchResultField>name</searchResultField>
73                <searchResultField>country</searchResultField>
74                <searchResultField>languages</searchResultField>
75                <searchResultField>modality</searchResultField>
76                <searchResultField>subject</searchResultField>
77                <searchResultField>genre</searchResultField>
78                <searchResultField>organisation</searchResultField>
79                <searchResultField>collection</searchResultField>
80                <searchResultField>nationalProject</searchResultField>
81        </searchResultFields>
82
83        <!-- Fields ignored in the record page -->
84        <ignoredFields>
85                <ignoredField>format</ignoredField>
86        </ignoredFields>
87
88        <!-- Fields shown as technical fields in the record page -->
89        <technicalFields>
90                <technicalField>id</technicalField>
91                <technicalField>dataProvider</technicalField>
92                <technicalField>metadataSource</technicalField>
93                <technicalField>_landingPageRef</technicalField>
94                <technicalField>_searchPageRef</technicalField>
95                <technicalField>_contentSearchRef</technicalField>
96                <technicalField>_lastSeen</technicalField>
97                <technicalField>_componentProfile</technicalField>
98        </technicalFields>
99
100        <!-- end added in 3.0 -->
101
102- The element 'facetfield' should be replaced with new values:
103
104        <!-- begin changed in 3.0 -->
105
106        <facetFields>
107                <facetField>language</facetField>
108                <facetField>resourceClass</facetField>
109                <facetField>continent</facetField>
110                <facetField>country</facetField>
111                <facetField>modality</facetField>
112                <facetField>genre</facetField>
113                <facetField>subject</facetField>
114                <facetField>format</facetField>
115                <facetField>organisation</facetField>
116                <facetField>nationalProject</facetField>
117                <facetField>keywords</facetField>
118                <facetField>dataProvider</facetField>
119        </facetFields>
120
121        <!-- end changed in 3.0 -->
122
123* The location of the Solr index data directory is now governed through a java system
124property 'solr.data.dir'. Add the following to ${catalina.home}/bin/setenv.sh:
125
126        export JAVA_OPTS="$JAVA_OPTS -Dsolr.data.dir=/lat/webapps/vlo/solr/data-beta"
127
128Substitute the directory with the actual desired location of the index data. The
129parent directory has to exist and should be writable by the Tomcat user.
130
131---------------------------
132Upgrading from 2.17 to 2.18
133---------------------------
134
135* In version 2.18 of the VLO, the URL mapping has been changed. To prevent
136existing references and bookmarks from breaking, add rewrite rules to the
137HTTP server to achieve the following mappings:
138
139[TODO: Define actual mod_rewrite rules and document here]
140
141- {vlobase}/?wicket:bookmarkablePage=:eu.clarin.cmdi.vlo.pages.ShowResultPage&docId={docId}
142        -> {vlobase}/record?docId={docId}
143
144- {vlobase}/?wicket:bookmarkablePage=:eu.clarin.cmdi.vlo.pages.ShowAllFacetValuesPage&selectedFacet={facet}
145        -> {vlobase}/values/{facet}
146
147In both case all additional GET parameters SHOULD be kept.
148
149Next to the URL mapping, the XML parameter file has undergone some changes:
150
151    <!-- Sets the maximum number of page instances which will be stored in the application scoped second level cache for faster retrieval -->
152    <pagesInApplicationCache>40</pagesInApplicationCache>
153   
154    <!-- Sets the maximum size (in KILOBYTES) of the File where page instances per session are stored. -->
155    <sessionCacheSize>10000</sessionCacheSize>
156
157Has been added to tune the Wicket page cache. The first parameter allows you
158to set the size of the application wide cache holding pages. The second parameter
159denotes the size of the cache (in kilobytes) associated with a session. The values
160listed above are the Wicket defaults.
161
162Other changes in the parameter file:
163- maxFileSize and use MaxFileSize have been integrated into one parameter:
164 
165  maxFileSize
166
167  If equal to 0, no upper limit to the size of metadata input files will be
168  applied.
169
170- maxDaysToLife has been renamed into maxDaysInSolr
171
172- VloHomeLink has been renamed into homeUrl
173
174- helpUrl has been added; a link to a help page.
175
176- The facetConceptsFile parameter, referencing the facetConcepts.xml file,
177  has been added also. This is part of the effort of making parameterised
178  instantiation of the VLO possible.
179
180- Also, the facetOverviewLength parameter has been added. This parameter controls
181  the listing of facets on the search page.
182
183- Similar to 'useMaxFileSize' the expectReverseProxy parameter has been removed
184
185Finally,
186
187    <cqlEndpointFilter>http://cqlservlet.mpi.nl/</cqlEndpointFilter>
188   
189    <cqlEndpointAlternative>http://cqlservlet.mpi.nl/</cqlEndpointAlternative>
190
191add the possibility of creating a filter for endpoints.
Note: See TracBrowser for help on using the repository browser.