Rebuilt meta entry query to be independent of document sequence.