TopDocs tdocs = performQuery(context, 0, maxHits, false);
IndexAndTaxonomy indexAndTaxonomy = _sm.getIndexReader(_language.presentationLanguage, _versionToken);
_versionToken = indexAndTaxonomy.version;
try {
for ( ScoreDoc sdoc : tdocs.scoreDocs ) {
DocumentStoredFieldVisitor docVisitor = new DocumentStoredFieldVisitor("_id", "_root", "_schema", "_createDate", "_changeDate",
"_source", "_isTemplate", "_title", "_uuid", "_isHarvested", "_owner", "_groupOwner");
indexAndTaxonomy.indexReader.document(sdoc.doc, docVisitor);
Document doc = docVisitor.getDocument();
Metadata mdInfo = Metadata.createFromLuceneIndexDocument(doc);
response.put(mdInfo.getId(), mdInfo);
}
} finally {