Is it possible to dynamically create a filter with option of OR for a view

Is it possible to dynamically create a filter with option of OR for a view

I have a view set. I want to dynamically filter records by saying 'Pull records with Criteria 1 OR with Criteria 2'. I know I can set it up manually by going to Summary page of a report.

Is it possible to write a deluge script to pull up this view based on user inputs by setting up two different Criterias and using OR condition?

For example, view name is NameReport

Input entered by user
Name Search: GA
LastName Search: SH

So the script will pull up all records from 'NameReport' where Name contain 'GA' OR LastName contains 'SH'.

Thanks,
Gaurav