PL-10105 FTS condition is not applied in Filter (FTS mode)

This commit is contained in:
Maxim Gorbunkov 2017-12-04 16:52:07 +04:00
parent 7dd7acaca6
commit 1d459f36f7

View File

@ -1496,8 +1496,8 @@ public class FilterDelegateImpl implements FilterDelegate {
if (!Strings.isNullOrEmpty(searchTerm)) {
FtsFilterHelper.FtsSearchResult ftsSearchResult = ftsFilterHelper.search(searchTerm, datasource.getMetaClass().getName());
int queryKey = ftsSearchResult.getQueryKey();
params.put("sessionId", userSessionSource.getUserSession().getId());
params.put("queryKey", queryKey);
params.put(FtsFilterHelper.SESSION_ID_PARAM_NAME, userSessionSource.getUserSession().getId());
params.put(FtsFilterHelper.QUERY_KEY_PARAM_NAME, queryKey);
CustomCondition ftsCondition = ftsFilterHelper.createFtsCondition(datasource.getMetaClass().getName());
conditions = new ConditionsTree();