Read more here:
Could they be excluded from the index somewhere else in the code? Have you checked initializable modules?
Efrain285, Can you please elaborate? What is the correct version of the code?
Have you checked the checkbox of "Blocks" in the "Search Configuration"? Please see below screenshot for your reference
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.
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?