Refactor plugin to use new AdvancedSearch.define_field instead of enumerations

Refactor plugin to define advanced search params with the new AdvancedSearch.define_field