Use domain filter in py or xml as
domain = "[('categ_id','=',categ1)]"
Or
Overwrite def search method of product.product and pass categ field as parameter
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):
if context is None:
context = {}
if context and context.get('search_default_categ_id', False):
args.append((('categ_id', '=', context['categ_id'])))
return super(product_product, self).search(cr, uid, args, offset=offset, limit=limit, order=order, context=context,count=count)
For Parent child relation of product category use this domain filter in py or xml (categ2)
domain = "[('parent_id','=',categ1)]"