Thanks a lot, it turned out that the collation of my database/tables was wrong. Now that is corrected, my simple and advanced searches are working fine.

It is interesting to note that the search is working without modifying query_factory.php