source: vlo/trunk/UPGRADE @ 6067

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

extended UPGRADE instructions

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