The parameter is a constant, either QueryDescriptor.QueryMode.BASIC or QueryDescriptor.QueryMode.ADVANCED. When you run the application and enter e.g. ???peter??? into the inputText field and leave the field (or hit return) the query panel looks like