add max page size
This commit is contained in:
parent
ec0bbcb4b2
commit
34863fc132
5 changed files with 31 additions and 10 deletions
|
@ -40,10 +40,11 @@ import org.codelibs.fess.crawler.client.http.ntlm.JcifsEngine;
|
|||
import org.codelibs.fess.crawler.client.smb.SmbAuthentication;
|
||||
import org.codelibs.fess.crawler.client.smb.SmbClient;
|
||||
import org.codelibs.fess.es.config.bsentity.BsDataConfig;
|
||||
import org.codelibs.fess.es.config.exbhv.FileConfigToLabelBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.FileConfigToRoleBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.DataConfigToLabelBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.DataConfigToRoleBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.LabelTypeBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.RoleTypeBhv;
|
||||
import org.codelibs.fess.mylasta.direction.FessConfig;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.codelibs.fess.util.ParameterUtil;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
|
@ -105,13 +106,15 @@ public class DataConfig extends BsDataConfig implements CrawlingConfig {
|
|||
if (labelTypeList == null) {
|
||||
synchronized (this) {
|
||||
if (labelTypeList == null) {
|
||||
final FileConfigToLabelBhv fileConfigToLabelBhv = ComponentUtil.getComponent(FileConfigToLabelBhv.class);
|
||||
final ListResultBean<FileConfigToLabel> mappingList = fileConfigToLabelBhv.selectList(cb -> {
|
||||
cb.query().setFileConfigId_Equal(getId());
|
||||
final FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
final DataConfigToLabelBhv dataConfigToLabelBhv = ComponentUtil.getComponent(DataConfigToLabelBhv.class);
|
||||
final ListResultBean<DataConfigToLabel> mappingList = dataConfigToLabelBhv.selectList(cb -> {
|
||||
cb.query().setDataConfigId_Equal(getId());
|
||||
cb.specify().columnLabelTypeId();
|
||||
cb.paging(fessConfig.getPageLabeltypeMaxFetchSizeAsInteger().intValue(), 1);
|
||||
});
|
||||
final List<String> labelIdList = new ArrayList<>();
|
||||
for (final FileConfigToLabel mapping : mappingList) {
|
||||
for (final DataConfigToLabel mapping : mappingList) {
|
||||
labelIdList.add(mapping.getLabelTypeId());
|
||||
}
|
||||
final LabelTypeBhv labelTypeBhv = ComponentUtil.getComponent(LabelTypeBhv.class);
|
||||
|
@ -150,13 +153,15 @@ public class DataConfig extends BsDataConfig implements CrawlingConfig {
|
|||
if (roleTypeList == null) {
|
||||
synchronized (this) {
|
||||
if (roleTypeList == null) {
|
||||
final FileConfigToRoleBhv fileConfigToRoleBhv = ComponentUtil.getComponent(FileConfigToRoleBhv.class);
|
||||
final ListResultBean<FileConfigToRole> mappingList = fileConfigToRoleBhv.selectList(cb -> {
|
||||
cb.query().setFileConfigId_Equal(getId());
|
||||
final FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
final DataConfigToRoleBhv dataConfigToRoleBhv = ComponentUtil.getComponent(DataConfigToRoleBhv.class);
|
||||
final ListResultBean<DataConfigToRole> mappingList = dataConfigToRoleBhv.selectList(cb -> {
|
||||
cb.query().setDataConfigId_Equal(getId());
|
||||
cb.specify().columnRoleTypeId();
|
||||
cb.paging(fessConfig.getPageRoletypeMaxFetchSizeAsInteger().intValue(), 1);
|
||||
});
|
||||
final List<String> roleIdList = new ArrayList<>();
|
||||
for (final FileConfigToRole mapping : mappingList) {
|
||||
for (final DataConfigToRole mapping : mappingList) {
|
||||
roleIdList.add(mapping.getRoleTypeId());
|
||||
}
|
||||
final RoleTypeBhv roleTypeBhv = ComponentUtil.getComponent(RoleTypeBhv.class);
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.codelibs.core.lang.StringUtil;
|
|||
import org.codelibs.fess.es.config.bsentity.BsElevateWord;
|
||||
import org.codelibs.fess.es.config.exbhv.LabelTypeBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.WebConfigToLabelBhv;
|
||||
import org.codelibs.fess.mylasta.direction.FessConfig;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
|
||||
|
@ -55,10 +56,12 @@ public class ElevateWord extends BsElevateWord {
|
|||
if (labelTypeList == null) {
|
||||
synchronized (this) {
|
||||
if (labelTypeList == null) {
|
||||
final FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
final WebConfigToLabelBhv webConfigToLabelBhv = ComponentUtil.getComponent(WebConfigToLabelBhv.class);
|
||||
final ListResultBean<WebConfigToLabel> mappingList = webConfigToLabelBhv.selectList(cb -> {
|
||||
cb.query().setWebConfigId_Equal(getId());
|
||||
cb.specify().columnLabelTypeId();
|
||||
cb.paging(fessConfig.getPageLabeltypeMaxFetchSizeAsInteger().intValue(), 1);
|
||||
});
|
||||
final List<String> labelIdList = new ArrayList<>();
|
||||
for (final WebConfigToLabel mapping : mappingList) {
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.codelibs.fess.es.config.exbhv.FileConfigToRoleBhv;
|
|||
import org.codelibs.fess.es.config.exbhv.LabelTypeBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.RoleTypeBhv;
|
||||
import org.codelibs.fess.helper.SystemHelper;
|
||||
import org.codelibs.fess.mylasta.direction.FessConfig;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.codelibs.fess.util.ParameterUtil;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
|
@ -80,10 +81,12 @@ public class FileConfig extends BsFileConfig implements CrawlingConfig {
|
|||
if (labelTypeList == null) {
|
||||
synchronized (this) {
|
||||
if (labelTypeList == null) {
|
||||
final FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
final FileConfigToLabelBhv fileConfigToLabelBhv = ComponentUtil.getComponent(FileConfigToLabelBhv.class);
|
||||
final ListResultBean<FileConfigToLabel> mappingList = fileConfigToLabelBhv.selectList(cb -> {
|
||||
cb.query().setFileConfigId_Equal(getId());
|
||||
cb.specify().columnLabelTypeId();
|
||||
cb.paging(fessConfig.getPageLabeltypeMaxFetchSizeAsInteger().intValue(), 1);
|
||||
});
|
||||
final List<String> labelIdList = new ArrayList<>();
|
||||
for (final FileConfigToLabel mapping : mappingList) {
|
||||
|
@ -125,10 +128,12 @@ public class FileConfig extends BsFileConfig implements CrawlingConfig {
|
|||
if (roleTypeList == null) {
|
||||
synchronized (this) {
|
||||
if (roleTypeList == null) {
|
||||
final FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
final FileConfigToRoleBhv fileConfigToRoleBhv = ComponentUtil.getComponent(FileConfigToRoleBhv.class);
|
||||
final ListResultBean<FileConfigToRole> mappingList = fileConfigToRoleBhv.selectList(cb -> {
|
||||
cb.query().setFileConfigId_Equal(getId());
|
||||
cb.specify().columnRoleTypeId();
|
||||
cb.paging(fessConfig.getPageRoletypeMaxFetchSizeAsInteger().intValue(), 1);
|
||||
});
|
||||
final List<String> roleIdList = new ArrayList<>();
|
||||
for (final FileConfigToRole mapping : mappingList) {
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.codelibs.core.lang.StringUtil;
|
|||
import org.codelibs.fess.es.config.bsentity.BsLabelType;
|
||||
import org.codelibs.fess.es.config.exbhv.LabelToRoleBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.RoleTypeBhv;
|
||||
import org.codelibs.fess.mylasta.direction.FessConfig;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
|
||||
|
@ -51,10 +52,12 @@ public class LabelType extends BsLabelType {
|
|||
if (roleTypeList == null) {
|
||||
synchronized (this) {
|
||||
if (roleTypeList == null) {
|
||||
final FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
final LabelToRoleBhv labelToRoleBhv = ComponentUtil.getComponent(LabelToRoleBhv.class);
|
||||
final ListResultBean<LabelToRole> mappingList = labelToRoleBhv.selectList(cb -> {
|
||||
cb.query().setLabelTypeId_Equal(getId());
|
||||
cb.specify().columnRoleTypeId();
|
||||
cb.paging(fessConfig.getPageRoletypeMaxFetchSizeAsInteger().intValue(), 1);
|
||||
});
|
||||
final List<String> roleIdList = new ArrayList<>();
|
||||
for (final LabelToRole mapping : mappingList) {
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.codelibs.fess.es.config.exbhv.LabelTypeBhv;
|
|||
import org.codelibs.fess.es.config.exbhv.RoleTypeBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.WebConfigToLabelBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.WebConfigToRoleBhv;
|
||||
import org.codelibs.fess.mylasta.direction.FessConfig;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.codelibs.fess.util.ParameterUtil;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
|
@ -83,10 +84,12 @@ public class WebConfig extends BsWebConfig implements CrawlingConfig {
|
|||
if (labelTypeList == null) {
|
||||
synchronized (this) {
|
||||
if (labelTypeList == null) {
|
||||
final FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
final WebConfigToLabelBhv webConfigToLabelBhv = ComponentUtil.getComponent(WebConfigToLabelBhv.class);
|
||||
final ListResultBean<WebConfigToLabel> mappingList = webConfigToLabelBhv.selectList(cb -> {
|
||||
cb.query().setWebConfigId_Equal(getId());
|
||||
cb.specify().columnLabelTypeId();
|
||||
cb.paging(fessConfig.getPageLabeltypeMaxFetchSizeAsInteger().intValue(), 1);
|
||||
});
|
||||
final List<String> labelIdList = new ArrayList<>();
|
||||
for (final WebConfigToLabel mapping : mappingList) {
|
||||
|
@ -131,10 +134,12 @@ public class WebConfig extends BsWebConfig implements CrawlingConfig {
|
|||
if (roleTypeList == null) {
|
||||
synchronized (this) {
|
||||
if (roleTypeList == null) {
|
||||
final FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
final WebConfigToRoleBhv webConfigToRoleBhv = ComponentUtil.getComponent(WebConfigToRoleBhv.class);
|
||||
final ListResultBean<WebConfigToRole> mappingList = webConfigToRoleBhv.selectList(cb -> {
|
||||
cb.query().setWebConfigId_Equal(getId());
|
||||
cb.specify().columnRoleTypeId();
|
||||
cb.paging(fessConfig.getPageRoletypeMaxFetchSizeAsInteger().intValue(), 1);
|
||||
});
|
||||
final List<String> roleIdList = new ArrayList<>();
|
||||
for (final WebConfigToRole mapping : mappingList) {
|
||||
|
|
Loading…
Add table
Reference in a new issue