Using and extending OpenCms search capabilities

Date: May 5, 2008
Time: 14:15 - 15:00
Track: Technical
Type: Presentation
Speaker: Claus Priisholm (CodeDroids ApS)

Abstract

Many web sites and applications benefits from a good search function. OpenCms uses the highly acclaimed Lucene full-text search engine and thus provides a solid foundation for full-text searches. Especially in conjunction with structured contents the full-text search engine opens new possibilities. As of OpenCms 7, it is now easier to deal with application specific indexing. If even more specific indexing is needed, customized indexing classes can be plugged into the OpenCms framework. Finally, if  one need to be able present a search feature against several web applications and not just OpenCms, this can be achieved by means of integrating OpenCms with an external search engine, while still maintaining the advantage of contents-aware indexing.

In this session we will look at how to configure the built-in indexing in order to take advantage specific information stored in OpenCms' structured contents.
We will look at an example of how to use a custom-build indexing class to cater for the cases where the standard configuration possibilities does not cover the required functionality. The example also shows how the specific information stored in the index can be used as basis for advanced searches.
We will also look at the scenario where there is a need to be able to search in not "just" files in OpenCms' virtual file system, we do this by using the Solr Lucene front-end (Solr is an open source project that provides a web service like front-end to Lucene).

The session should give you an idea of how to meet various needs for searching in relation to OpenCms. Some basic understanding on how OpenCms deals with indexing and searching will be advantageous but not an requirement. The same applies to understanding the OpenCms Java API and XML schemas.

Latest News

  • OpenCms 17 available

    Apr 9, 2024 - OpenCms 17 gives content managers the new app "Date search" to find content that has been changed in a certain time range. The "Websites" app allows to easily export the content of a complete site for archiving. An option has been added to hide "sensitive" content in the Offline project. The default Mercury template has been further improved, e.g. with SEO optimized job postings, a "spacer" function and marker clusters for maps. OpenCms 17 has also been tested and certified using Java 17 LTS and 21 LTS.

  • OpenCms 17 Release Notes

    Apr 9, 2024 - The OpenCms 17 release notes contain detailed information about the new features and fixes in this version.

  • Alkacon OCEE 17

    Apr 9, 2024 - Alkacon OCEE 17 is the latest OCEE release for OpenCms 17. This version improves the cluster shutdown behaviour when using the CmsShell.

  • OpenCms Docker image

    Apr 9, 2024 - Test OpenCms using the official image from the Docker hub registry - the fastest way to evaluate and test OpenCms. The image is well suited for evaluation and test purposes of the latest OpenCms release. We provide a docker-compose file to get OpenCms and the database running with just one command.

Try the OpenCms Live Demo