use of org.exist.util.Occurrences in project exist by eXist-db.
the class LuceneIndexWorker method addOccurrence.
private void addOccurrence(TreeMap<String, Occurrences> map, String term, int frequency, DocumentImpl storedDocument) throws IOException {
Occurrences oc = map.get(term);
if (oc == null) {
oc = new Occurrences(term);
map.put(term, oc);
}
oc.addDocument(storedDocument);
oc.addOccurrences(frequency);
}
Aggregations