$collectionData = $this->_productCollectionFactory->create()->addAttributeToSelect('*')
->addFieldToFilter(['attribute1', 'attribute2'],
[
['in' => $attribute1],
['nin' => $attribute2],
]);
I want to get collection based on "OR condition" on three attribute for example a product which has color yellow or size small but not manufacture china.
addAttributeToFilter()
instead ofaddFieldToFilter