-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
72 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Searching Blocks | ||
|
||
## Overview | ||
|
||
Content created through SilverStripe can be searched in various ways. | ||
A popular option is the [silverstripe/fulltextsearch](https://github.com/silverstripe/silverstripe-fulltextsearch) | ||
module, which integrates with search services such as Solr. | ||
|
||
## Usage | ||
|
||
When you install the fulltextsearch module, it will auto-discover | ||
an index provided by elemental: | ||
`DNADesign\Elemental\Search\ElementalSolrIndex`. | ||
|
||
It works based on a new `getElementsForSearch` method added to your `Page` class | ||
through the `DNADesign\Elemental\Extensions\ElementalPageExtension`. | ||
This method renders out the full content of all elements, | ||
strips out the HTML, and indexes it as one field. | ||
|
||
## Configuration | ||
|
||
In many cases, you'll already have configured your own search index. | ||
Since the `ElementalSolrIndex` is auto-discovered, it duplicates | ||
search indexing effort even when it is unused. | ||
|
||
You can disable it via YAML config in favour of your own index definition: | ||
|
||
```yml | ||
SilverStripe\FullTextSearch\Search\FullTextSearch: | ||
indexes: | ||
- MyCustomIndex | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters