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

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

merged changes from trunk

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