fixes to search return unpublished constraint