Hey… welcome to the community. So glad you’ve chosen MongoDB for your project. If your Bloom filters are stored in individual documents and you want to query a specific filter… you need to identify the document uniquely. For example, if each Bloom filter is associated with a unique filterId, you can use the following query:
db.collection.find({
filterId: "specific_filter_id", // Identify the specific document
bloomFilter: {
$bitsAllSet: [<bit_positions>] // Check if bits are set
}
});
``
Let us know how you make out.