I am having problems in custom module search.
In my case I have a custom module “brand” with fields shown in Image. (See brandModule.png)
In this module there are two fields (Category, Subcategories) which are causing problem because when I delete those fields everything started working fine.
These two fields actually referencing another module (both fields reference the same module) which is “Category” with fields as shown in the image. (See CategoryModule.png)
In this module there is a field ParentCategory which is referencing the same module(it self).
Now I have created a searchIndex as shown in the image. (See MySearchIndex.png)
I have selected the “brand” module to and set its default page where the brands are published.
After that when I try to search any of these brand items I don't find any.