| Sesat > Docs + Support > Upgrade Guides > 2.16 Upgrade |
SEARCH-3654 Generalized enrichment handling
Removed APIs:
- SearchTab.getEnrichmentLimit()
- SearchTab.getEnrichmentOnTop()
- SearchTab.getEnrichmentOnTopScore()
- EnrichmentHint.isAlwaysVisible()
Added APIs:
- EnrichmentPlacementHint class
- EnrichmentHint.getProperties()
Changed API:
- AbstractEnrichmentDirective.placementCorrect(..)
The logic on how many enrichments to show and enrichment thresholds have been moved, from being static to a SearchTab, into the EnrichmentPlacementHint class.
The class is configured with the <enrichment-placement> element in views.xml.
Any vertical, or SearchTab, may have as many <enrichment-placement> as desired. It is intended that EnrichmentPlacementHint is used primarily by EnrichmentDirective implementation.Both EnrichmentHint and EnrichmentPlacementHint may contain arbitrary properties. The properties for EnrichmentHint are passed into the corresponding search command result list as fields.
EnrichmentHint.isAlwaysVisible() was removed, it's /reverse/ functionality re-implemented in genericno.sesam.no/velocity-directives's EnrichmentDirective as this was the sole place where it was false, ie always-visable="false".
AbstractEnrichmentDirective.placementCorrect(..) method signature changed to take for the first parameter a DataModel instance instead of a SearchTab instance. This gave the implementation of the method more flexibility as SearchTab was easily derived from the DataModel.
SEARCH-3733 New methods for offset
SEARCH-4264 Nyhetssøk, nettsøkberikelsen tar i bruk offset fra URL-enOffset methods moved away from junkyard to using 'offset' navigator.
No longer any need for SearchConfiguration's isPaging() or isIgnoreOffset() methods.Added APIs:
- boolean SearchCommand.isPaginated()
- int AbstractSearchCommand.getOffset()
Deprecated APIs:
- int AbstractSearchCommand.getCurrentOffset(int i) :: Use instead getOffset() +i
Removed APIs:
- SearchConfiguration.isPaging()
- CommandConfig.setPaging()
- NewsEspCommandConfig.isIgnoreOffset()
- NewsEspCommandConfig.setIgnoreOffset()
Removed APIs:
- AbstractSearchCommand.getParameters()
Use AbstractSearchCommand.getParameter(parameterName) or datamodel.getParameters().getValues() instead.
Sesat-kernel/sitemap-generator uses ServiceLoader to load PageProviders from skin sitemap jarfiles.
META-INF/context.xml unpacking during deployment on tomcat-5.5 kills the application. See SEARCH-4296 sesat r6123 incompatible with tomcat-5.5