return getAllEntries(getOffset(), getLimit(), pub);
if ( !isInitialized() ) throw new IllegalStateException("Database must be initialized before use!");  if ( !IndexReader.indexExists(indexDir) ) return new EntryHitList(null, null);   BooleanQuery query = new BooleanQuery();  TermQuery term = new TermQuery(new Term(Entry.ENTRY_MARKER, Entry.ENTRY_MARKER)); query.add(term, true, false);  if ( pub ) { TermQuery pubTerm = new TermQuery(new Term(Entry.PUBLIC, "true")); query.add(pubTerm, true, false); }  IndexSearcher searcher = new IndexSearcher(indexDir);  Sort sort = determineSort(); LOG.debug("Sort Instance: "+sort);  Hits hits = searcher.search(query, sort);  LOG.info("Found "+hits.length()+" matches for query: <"+query+"> Returning ALL!");  return new EntryHitList(hits,searcher);
    public EntryList getAllEntries(boolean pub) throws IOException    {        return getAllEntries(getOffset(), getLimit(), pub);    }