Updated logic for In and NotIn operator while matching with filter.