How to makes blocks searchable in episerver?

Vote:
 

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?

#199944
Edited, Dec 19, 2018 7:57
Vote:
 

Hi Lata

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

#200017
Dec 21, 2018 10:30
Vote:
 

There is a problem in code itself.

#202768
Apr 01, 2019 8:51
Vote:
 

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

#202820
Apr 01, 2019 21:23
Vote:
 

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

#203016
Apr 06, 2019 7:31
Vote:
 

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.

#203019
Apr 06, 2019 20:23
Vote:
 

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

#203056
Apr 08, 2019 17:13
Vote:
 

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. 

#203058
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.