support limit count
prepare for multi thread search