IndexAccessor ia = autocompleteLocation.getAccessor();
Searcher autoCompleteSearcher = ia.getPrioritizedSearcher();
IndexReader autoCompleteReader = ia.getReader(false);
try {
Query query = new TermQuery(new Term(GRAMMED_WORDS_FIELD, term));
Sort sort = new Sort(new SortField(COUNT_FIELD, SortField.LONG, true));
TopDocs docs = autoCompleteSearcher.search(query, null, 5, sort);
int id = 1;
for (ScoreDoc doc : docs.scoreDocs) {
CRResolvableBean bean = new CRResolvableBean(id++);
Document d = autoCompleteReader.document(doc.doc);