Search in Custom Component

How do we know/control the index for the standard search in a custom component. In a table we can designate certain fields to be indexed, but in a custom component this option is not available. I am getting inconsistent results with searches and would like to troubleshoot.