-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.4
-
Fix Version/s: 3.4
-
Component/s: Blocks, Global search
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_34_STABLE
-
Fixed Branches:MOODLE_34_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-58957-master -
Pull Master Diff URL:
The global search API does not support searching of blocks. (Specifically, a block could potentially add indexed content in course context, but there is no way to add indexed content in block context, which means the search can't be aware of things like the moodle/block:view capability or the block hide/show option.)
Most blocks are functional and do not contain content of their own (they often display content which originates in other locations), so they do not need to be searched. However, the HTML block contains content and it would be useful to be able to search within this.
Additionally, many people implement custom code as blocks, and some of this might benefit from searching. At the OU we have a custom news block which we want to make searchable.
Note that blocks are really complicated in this regard because they can appear in multiple places and a completely generic solution is currently impossible. However for content blocks it is probably most likely that they are added to the course page - I suggest that for an initial implementation we just support that page, and other pages can be added later.
- has been marked as being related by
-
MDL-59375 Boost: Linking directly to a block instance looks weird
-
- Open
-
-
MDL-61913 Restoring (or importing) blocks with Global Search enabled can lead to fatal error
-
- Closed
-
-
MDL-55356 Add restored contents support to global search API
-
- Closed
-
-
MDL-59374 Global search: Extend block support to user dashboard blocks
-
- Open
-
- will be (partly) resolved by
-
MDL-61825 block_html configdata format may not be available
-
- Open
-
-
MDL-54992 SOLR engine should check core's maxBooleanClauses value
-
- Open
-