How to makes blocks searchable in episerver?


I have used below code for making blocks searchable.

ContentIndexer.Instance.Conventions.ForInstancesOf<BlockData>().ShouldIndex(x => true);

Why specific blocks are not searchable in edit mode?

Edited, Dec 19, 2018 7:57

Hi Lata

Could they be excluded from the index somewhere else in the code? Have you checked initializable modules?

Dec 21, 2018 10:30

There is a problem in code itself.

Apr 01, 2019 8:51

Efrain285, Can you please elaborate?  What is the correct version of the code?

Apr 01, 2019 21:23

Have you checked the checkbox of "Blocks" in the "Search Configuration"? Please see below screenshot for your reference

Apr 06, 2019 7:31

Is that setting is related to search functionality of Episerver? I mean it's related to internal search?

May be I am wrong, but may be it's related to the search boxes we see in CMS.

Apr 06, 2019 20:23

Are you using Epi Find?  If so, which version?

Apr 08, 2019 17:13

Is this for FIND or the out of the box Lucene search? If it's the out of the box search, I don't believe blocks are searchable. 

Apr 08, 2019 17:24
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.