use of com.yahoo.search.predicate.index.Posting in project vespa by vespa-engine.
the class PredicateIndexBuilder method indexDocumentConjunctions.
private void indexDocumentConjunctions(int docId, Map<IndexableFeatureConjunction, List<Integer>> featureConjunctions) {
for (Map.Entry<IndexableFeatureConjunction, List<Integer>> e : featureConjunctions.entrySet()) {
IndexableFeatureConjunction fc = e.getKey();
List<Integer> intervals = e.getValue();
Posting posting = new Posting(docId, intervalStoreBuilder.insert(intervals));
conjunctionIntervalIndexBuilder.insert(fc.id, posting);
conjunctionIndexBuilder.indexConjunction(fc);
}
}
Aggregations