private void indexDocumentBoundsFeatures(int docId, Map<Long, List<IntervalWithBounds>> boundsMap) {
        boundsMap.entrySet().stream()
                .forEach(entry -> boundsIndexBuilder.insert(entry.getKey(),
                        new Posting(docId,
                                intervalStoreBuilder.insert(
                                        entry.getValue().stream().flatMap(IntervalWithBounds::stream).toList()))));
    }
Indexes a predicate with the given id.

@param docId     a 32-bit document id, returned in the Hit objects when the predicate matches
@param predicate the predicate to index
predicate-search/src/main/java/com/yahoo/search/predicate/PredicateIndexBuilder.java