Skip to content
Snippets Groups Projects
Commit dbf49eab authored by vkovtun's avatar vkovtun
Browse files

SSDM-9845 Fixed Not working code match in full text search.

parent 5cbda24c
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,6 @@ public class SearchGloballyOperationExecutor
allResultMaps.addAll(materialResultMaps);
}
final Collection<MatchingEntity> matchingEntities = globalSearchManager.map(allResultMaps,
fetchOptions.hasMatch());
final List<MatchingEntity> pagedMatchingEntities = sortAndPage(matchingEntities, fetchOptions);
......
......@@ -250,7 +250,8 @@ public class GlobalSearchManager implements IGlobalSearchManager
return combinedMatches.stream().collect(Collectors.toMap(
(propertyMatch) -> Arrays.asList(propertyMatch.getCode(), propertyMatch.getValue()),
Function.identity(),
(existingPropertyMatch, newPropertyMatch) -> {
(existingPropertyMatch, newPropertyMatch) ->
{
existingPropertyMatch.getSpans().addAll(newPropertyMatch.getSpans());
return existingPropertyMatch;
},
......
......@@ -493,7 +493,7 @@ public class GlobalSearchCriteriaTranslator
private static void appendMatchingColumnCondition(final StringBuilder sqlBuilder,
final String matchingColumn, final List<Object> args, final String[] criterionValues)
{
sqlBuilder.append(matchingColumn);
sqlBuilder.append(LOWER).append(SP).append(LP).append(matchingColumn).append(RP);
sqlBuilder.append(SP).append(IN).append(SP).append(LP)
.append(SELECT).append(SP).append(UNNEST).append(LP).append(QU).append(RP)
.append(RP);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment