added fix for 6133

This commit is contained in:
Long Ma 2024-07-19 13:19:03 -06:00
parent 6f683e0990
commit 6f2ed35546
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
type: fix
issue: 6083
backport: 7.2.2
title: "A bug with $everything operation was discovered when trying to search using hibernate search, this change makes
all $everything operation rely on database search until hibernate search fully supports the operation."

View File

@ -482,7 +482,8 @@ public class SearchBuilder implements ISearchBuilder<JpaPid> {
&& myParams != null
&& myParams.getSearchContainedMode() == SearchContainedModeEnum.FALSE
&& myFulltextSearchSvc.supportsSomeOf(myParams)
&& myFulltextSearchSvc.supportsAllSortTerms(myResourceName, myParams);
&& myFulltextSearchSvc.supportsAllSortTerms(myResourceName, myParams)
&& myParams.getEverythingMode() == null;
}
private void failIfUsed(String theParamName) {