source: vlo/branches/vlo-3.1/UPGRADE @ 6070

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

merged upgrade instructions again

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