return document id,index,type with results