source: vlo/branches/vlo-3.1/UPGRADE.txt @ 6103

Last change on this file since 6103 was 6103, checked in by Twan Goosen, 9 years ago

merged changes in documentation from trunk

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