Coder Social home page Coder Social logo

epi.libraries.blocksearch's Introduction

Add block content to the index of EPiServer Search.

Build status GitHub version Platform Platform GitHub license Quality Gate Status NuGet

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.

Powered by ReSharper image

epi.libraries.blocksearch's People

Contributors

jstemerdink avatar thomashigginbotham avatar

Stargazers

 avatar  avatar

Watchers

 avatar

epi.libraries.blocksearch's Issues

Null error when duplicating a page that contains blocks

When duplicating a page, a null exception occurs in the OnPublishingContent handler while iterating over the page's content area items. My assumption is that the page data has references to content area items that don't yet exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.