indexAnalyzer(analyzer);
queryAnalyzer(analyzer);
}
@Override public ActionRequestValidationException validate() {
ActionRequestValidationException validationException = super.validate();
if (field == null || field.length() == 0) {
validationException = ValidateActions.addValidationError("No suggest field specified", validationException);
}
if (term == null || term.length() == 0) {
validationException = ValidateActions.addValidationError("No query term specified", validationException);