Refactor plugin to use new AdvancedSearch.define_field instead of enumerations

Use AdvancedSearch.define_field to define all search fields (enums no longer used)