fix #1198 remove @Required for docId
This commit is contained in:
parent
9fd61f252b
commit
af80887a18
2 changed files with 7 additions and 5 deletions
|
@ -440,10 +440,13 @@ public class AdminSearchlistAction extends FessAdminAction {
|
|||
case CrudMode.EDIT:
|
||||
if (form instanceof EditForm) {
|
||||
final String docId = ((EditForm) form).docId;
|
||||
return fessEsClient.getDocument(fessConfig.getIndexDocumentUpdateIndex(), fessConfig.getIndexDocumentType(), builder -> {
|
||||
builder.setQuery(QueryBuilders.termQuery(fessConfig.getIndexFieldDocId(), docId));
|
||||
return true;
|
||||
});
|
||||
if (StringUtil.isNotBlank(docId)) {
|
||||
return fessEsClient.getDocument(fessConfig.getIndexDocumentUpdateIndex(), fessConfig.getIndexDocumentType(),
|
||||
builder -> {
|
||||
builder.setQuery(QueryBuilders.termQuery(fessConfig.getIndexFieldDocId(), docId));
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -25,7 +25,6 @@ public class EditForm extends CreateForm {
|
|||
|
||||
public String id;
|
||||
|
||||
@Required
|
||||
public String docId;
|
||||
|
||||
@ValidateTypeFailure
|
||||
|
|
Loading…
Add table
Reference in a new issue