I have not done this kind of modification but as a note I shall add that the developers are working on improvements for the advanced search to also include custom lists, forms and save search queries and so on. Just be a bit patient ;) Hope that the next version (no ETA) will include these changes.