* @param spamScoresPath Path to spam/quality scores
*/
public static void writePostings(String outputPath, FileSystem fs, RetrievalEnvironment env, String spamScoresPath)
throws IOException {
SpamPercentileScore spamScores = new SpamPercentileScore();
spamScores.initialize(spamScoresPath, fs);
int[] newDocids = DocumentUtility.spamSortDocids(spamScores);
int collectionSize = env.readCollectionTermCount();
Posting posting = new Posting();
FSDataOutputStream out;