throw new IOException("Could not locate index database");
}
searcher = new IndexSearcher(ireader);
SortField sfield = new SortField(QueryBuilder.DATE, SortField.Type.STRING, true);
Sort sort = new Sort(sfield);
QueryParser qparser = new QueryParser(QueryBuilder.PATH, new CompatibleAnalyser());
Query query;
ScoreDoc[] hits = null;
try {
query = qparser.parse(path);
TopFieldDocs fdocs = searcher.search(query, null, hitsPerPage * cachePages, sort);