PostingsReader reader = constructPostingsReader(terms[i]);
if(reader != null)
readers.add(reader);
}
postingsReader = new ProximityPostingsReaderUnorderedWindow(readers.toArray(new PostingsReader[0]), windowSize);
} else {
postingsReader = constructPostingsReader(exp.getTerms()[0]);
}
} catch (Exception e) {
throw new RuntimeException("Unable to initialize PostingsReader!", e);