This document contains information for an outdated version (2.4) and may not be maintained any more.

If some of your projects still use this version, consider upgrading as soon as possible.

Search

Searching for Pages (and Files)

Fulltext search for page content (and other attributes like "Title" or "MetaTags") can be easily added to SilverStripe. See Tutorial: Site Search for details.

Searching for DataObject's

The SearchContext class provides a good base implementation that you can hook into your own controllers. A working implementation of searchable DataObjects can be seen in the ModelAdmin class.

SearchContext goes into more detail about setting up a default search form for DataObjects.

Searching for Documents

SilverStripe does not have a built-in method to search through file content (e.g. in PDF or DOC format). You can either extract any textual file content into the File->Content` property, or use a dedicated search service like the sphinx module.

Comments

Comment policy: Please use comments for tips and corrections about the described functionality.
Comments are moderated, we reserve the right to remove comments that are inappropriate or are no longer relevant. Use the Silverstripe Forum to ask questions.

blog comments powered by Disqus