Modified search to include the processDefKey