Vufind: The library OPAC meets Web 2.0


 

Search Result Highlighting

IMPORTANT: This page refers to features that were added in VuFind 1.1. If you are using an earlier version, you will have to upgrade.

VuFind supports highlighting in all of its current search modules, but the details are slightly different for each search platform.

Solr

VuFind's main Solr-based search has customizable highlighting features controlled by the highlighting setting in web/conf/searches.ini. The related snippets setting and [Snippets_Captions] section may be used to control the display of highlighted text snippets when matches are found outside of the fields normally displayed by default as part of a search result.

If more advanced customization is needed, note that a lot of the highlighting behavior is controlled by the default IndexRecord record driver, with some low-level pieces embedded in the Solr class. The Solr highlighting documentation provides some information on what is possible. If you add any significant features to your local VuFind instance, please consider sharing them in JIRA for inclusion in future releases of VuFind – there is definitely a potential for additional highlighting-related configuration options.

For more technical details on VuFind's highlighting implementation, see this blog post.

Summon

Highlighting in the Summon module is slightly less flexible than Solr highlighting, but it works very similarly, using the highlighting and snippets settings found in web/conf/Summon.ini.

WorldCat

Since WorldCat does not have a native highlighting feature, VuFind achieves highlighting of WorldCat results through the |highlight modifier in the WorldCat/list-list.tpl Smarty template – there are no .ini settings involved. To change highlighting functionality, you can override the template and/or change the definition of the highlight CSS class.

 
search_result_highlighting.txt · Last modified: 2011/03/23 11:11 by demiankatz
 
Recent changes RSS feed Driven by DokuWiki