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

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

fixed typo in upgrade instructions

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