source: vlo/branches/vlo-3.0/UPGRADE @ 5071

Last change on this file since 5071 was 5071, checked in by Twan Goosen, 10 years ago

added note about configuring solr url to upgrade instructions

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