fix add duplicate key exception in SearchOperations