set rt and veridation
This commit is contained in:
parent
f6425c8e57
commit
59a271ba7f
3 changed files with 9 additions and 0 deletions
|
@ -64,6 +64,7 @@ public class GoAction extends FessSearchAction {
|
|||
@Execute
|
||||
public ActionResponse index(final GoForm form) throws IOException {
|
||||
searchAvailable();
|
||||
validate(form, messages -> {}, () -> asHtml(path_ErrorJsp));
|
||||
|
||||
Map<String, Object> doc = null;
|
||||
try {
|
||||
|
|
|
@ -25,10 +25,12 @@ public class GoForm {
|
|||
public String docId;
|
||||
|
||||
@Size(max = 10000)
|
||||
@Required
|
||||
public String rt;
|
||||
|
||||
public String hash;
|
||||
|
||||
@Required
|
||||
public String queryId;
|
||||
|
||||
public Integer order;
|
||||
|
|
|
@ -370,5 +370,11 @@ public class SearchAction extends FessSearchAction {
|
|||
data.register("searchQuery", searchQuery);
|
||||
super.setSearchQuery(searchQuery);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRequestedTime(long requestedTime) {
|
||||
data.register("requestedTime", requestedTime);
|
||||
super.setRequestedTime(requestedTime);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue