EPi.Libraries.BlockSearch 6.1.0
Add block content to the index of EPiServer Search.
About
Add Blocks used on a page to EPiServer Search Index as content of the page they were used on.
This is supported in Find, but not if you use EPiServer Search.
You need an extra property to your base class, or a specific pagetype to hold the content of the Blocks.
Note the ScaffoldColumn(false) attribute, which hides it in edit mode.
[CultureSpecific]
[ScaffoldColumn(false)]
[Searchable]
[AdditionalSearchContent]
public virtual string SearchText { get; set; }
The aggregated content from string properties marked Searchable
in the Blocks are added to the property marked with [AdditionalSearchContent]
.
Note: If for some reason you don't want a property on a Block indexed, just add [Seachable(false)]
to it.
The content of the property marked with ```[AdditionalSearchContent]`` is added to the index and you get results also if the term you are looking for is only used in a Block on the page.
No packages depend on EPi.Libraries.BlockSearch.
Version | Downloads | Last updated |
---|---|---|
6.1.0 | 42 | 09/05/2022 |
6.0.1 | 50 | 02/17/2022 |
5.0.1 | 4,562 | 06/19/2018 |
5.0.0 | 12,396 | 11/22/2017 |
4.0.5 | 526 | 09/13/2017 |
4.0.4 | 59 | 09/08/2017 |
4.0.3 | 64 | 09/08/2017 |
4.0.2 | 66 | 09/08/2017 |
4.0.0 | 832 | 10/24/2016 |
3.1.0 | 447 | 09/13/2016 |
3.0.0 | 84 | 03/14/2022 |
2.0.2 | 53 | 03/14/2022 |
2.0.1 | 57 | 03/14/2022 |
2.0.0 | 56 | 03/14/2022 |
1.0.0 | 63 | 03/14/2022 |