Explorar el Código

fix #2584 replace with wildcard query

Shinsuke Sugaya hace 4 años
padre
commit
e23829e80e

+ 1 - 1
src/main/java/org/codelibs/fess/app/service/DataConfigService.java

@@ -94,7 +94,7 @@ public class DataConfigService extends FessAppService {
             cb.query().setHandlerName_Wildcard(wrapQuery(dataConfigPager.handlerName));
             cb.query().setHandlerName_Wildcard(wrapQuery(dataConfigPager.handlerName));
         }
         }
         if (StringUtil.isNotBlank(dataConfigPager.description)) {
         if (StringUtil.isNotBlank(dataConfigPager.description)) {
-            cb.query().setDescription_MatchPhrase(wrapQuery(dataConfigPager.description));
+            cb.query().setDescription_Wildcard(wrapQuery(dataConfigPager.description));
         }
         }
         // TODO Long, Integer, String supported only.
         // TODO Long, Integer, String supported only.
 
 

+ 1 - 1
src/main/java/org/codelibs/fess/app/service/FileConfigService.java

@@ -103,7 +103,7 @@ public class FileConfigService extends FessAppService {
             cb.query().setPaths_Wildcard(wrapQuery(fileConfigPager.paths));
             cb.query().setPaths_Wildcard(wrapQuery(fileConfigPager.paths));
         }
         }
         if (StringUtil.isNotBlank(fileConfigPager.description)) {
         if (StringUtil.isNotBlank(fileConfigPager.description)) {
-            cb.query().setDescription_MatchPhrase(wrapQuery(fileConfigPager.description));
+            cb.query().setDescription_Wildcard(wrapQuery(fileConfigPager.description));
         }
         }
         // TODO Long, Integer, String supported only.
         // TODO Long, Integer, String supported only.
 
 

+ 1 - 1
src/main/java/org/codelibs/fess/app/service/WebConfigService.java

@@ -111,7 +111,7 @@ public class WebConfigService extends FessAppService {
             cb.query().setUrls_Wildcard(wrapQuery(webConfigPager.urls));
             cb.query().setUrls_Wildcard(wrapQuery(webConfigPager.urls));
         }
         }
         if (StringUtil.isNotBlank(webConfigPager.description)) {
         if (StringUtil.isNotBlank(webConfigPager.description)) {
-            cb.query().setDescription_MatchPhrase(wrapQuery(webConfigPager.description));
+            cb.query().setDescription_Wildcard(wrapQuery(webConfigPager.description));
         }
         }
         // TODO Long, Integer, String supported only.
         // TODO Long, Integer, String supported only.