implemented queryExpand skeleton in doc retrieval