Skip to content

Commit

Permalink
DOCS Expand documentation of fulltextsearch changes in 2.6.0 changelog (
Browse files Browse the repository at this point in the history
#280)

Co-authored-by: Steve Boyd <emteknetnz@gmail.com>
  • Loading branch information
Garion Herman and emteknetnz committed Jul 2, 2020
1 parent 26410d0 commit cb0ab2e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/en/05_Releases_and_changelogs/cwp_2.6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ Common Web Platform (CWP infrastructure) has the support for it already, so no e
Since the modules become a part of [cwp/installer](https://github.com/silverstripe/cwp-installer), the change will only affect
new projects. An upgrade to 2.6.0 will not install the MFA modules. However, manual installation is as easy as `composer require`.

## Solr no longer indexes draft content
### Solr no longer indexes draft / restricted content

This CWP release includes an update to the [fulltextsearch module](https://github.com/silverstripe/silverstripe-fulltextsearch) which now has more secure defaults. Most notably, draft content is now no longer added to the solr index by default. There is also a canView() check performed against an anonymous user before adding content to the solr index. After upgrading your website, ensure that you run Solr_Reindex on production to remove previously indexed content that should no longer be there.
This CWP release includes an update to the [fulltextsearch module](https://github.com/silverstripe/silverstripe-fulltextsearch) to introduce more secure defaults. Most notably, **draft and restricted content will no longer be indexed by default**, due to a `canView()` check being performed against an anonymous user prior to (re)indexing. Restricted content means that it has a permission level of either `Logged-in users` or `Only these groups`.

If your website requires draft content to be indexed, you can [opt-out](https://github.com/silverstripe/silverstripe-fulltextsearch/blob/3/README.md#important-note-when-upgrading-to-fulltextsearch-37) of the new secure defaults.
After upgrading your website, ensure that you run the `Solr_Reindex` task on your production environment to remove previously indexed content that should no longer be there.

If your website requires draft or restricted content to be indexed, you can [opt-out](https://github.com/silverstripe/silverstripe-fulltextsearch/blob/3/README.md#important-note-when-upgrading-to-fulltextsearch-37) of the new secure defaults on a per-model basis.

This is a great opportunity to make sure that any custom indexes / search controllers in your project are correctly filtering results based on permissions and search visibility, which you can now achieve via a unified method (see `SilverStripe\FullTextSearch\Search\ServicesSearchableService::isSearchable()`.)

### Subsites is no longer included in the default CWP installation

Expand Down

0 comments on commit cb0ab2e

Please sign in to comment.