mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
DOCS 2.4 : Fixed some external links causing 404s DOCS 2.4 : adjusted link labels DOCS 2.4 : another link label fixed up DOCS 2.4 : fixed link
1.2 KiB
1.2 KiB
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 [api: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 [api:ModelAdmin]
class.
SearchContext goes into more detail about setting up a default search form for [api:DataObject]
s.
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](api:File)->Content
property, or use a
dedicated search service like the sphinx module.
Related
[api:ModelAdmin]
[api:RestfulServer]
- Tutorial: Site Search
- SearchContext
- genericviews module
- sphinx module
- lucene module