Hi,
Could you please describe me your requirement in more detail? What is the expected result? Is it possible to give me some simple example of filtering so I have a better understanding? Also I would recommend you to check smart search filter in our documentation.
Regards, Roman Konicek