Its not that bad

Just look at the AdvancedSearch method (it actually is the part that calls the search). The arguments are what I had set up and just the sScope argument is a bit but the others are straight forward.

sFilter is the WHERE clause like in SQL.