fixed bug that #resultset was only size of input, but now each ID can
result in multiple documents