File oldIndexDir = _TestUtil.getTempDir("negatives");
_TestUtil.unzip(getDataFile(bogus24IndexName), oldIndexDir);
Directory dir = newFSDirectory(oldIndexDir);
DirectoryReader ir = DirectoryReader.open(dir);
IndexSearcher is = new IndexSearcher(ir);
PhraseQuery pq = new PhraseQuery();
pq.add(new Term("field3", "more"));
pq.add(new Term("field3", "text"));
TopDocs td = is.search(pq, 10);
assertEquals(1, td.totalHits);
AtomicReader wrapper = SlowCompositeReaderWrapper.wrap(ir);
DocsAndPositionsEnum de = wrapper.termPositionsEnum(new Term("field3", "broken"));
assert de != null;