NIHVIVO-2003 Removed commented-out code

This commit is contained in:
rjy7 2011-02-03 19:18:22 +00:00
parent 06454ae9cb
commit cedbc8ff05

View file

@ -129,13 +129,6 @@ public class AutocompleteController extends FreemarkerHttpServlet{
try{
Document doc = searcherForRequest.doc(topDocs.scoreDocs[i].doc);
String uri = doc.get(VitroLuceneTermNames.URI);
// IndividualDao iDao = vreq.getWebappDaoFactory().getIndividualDao();
// Individual ind = iDao.getIndividualByURI(uri);
// if (ind != null) {
// String name = ind.getName();
// SearchResult result = new SearchResult(name, uri);
// results.add(result);
// }
String name = doc.get(VitroLuceneTermNames.NAMERAW);
SearchResult result = new SearchResult(name, uri);
results.add(result);