Associated consts can appear in none trait impls so need to be treated like methods when generating the search index.