Skip to content

Commit 299258a

Browse files
committed
fix(core): make sure we track scores when filtering resources by title
1 parent 4d6b276 commit 299258a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/com.b2international.snowowl.core/src/com/b2international/snowowl/core/request/BaseResourceSearchRequest.java

+5
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ protected final Expression prepareQuery(RepositoryContext context) {
105105
return queryBuilder.build();
106106
}
107107

108+
@Override
109+
protected boolean trackScores() {
110+
return containsKey(OptionKey.TITLE);
111+
}
112+
108113
/**
109114
* Configures security filters to allow access to certain resources only. This method is no-op if the given {@link ServiceProvider context}'s {@link User} is an administrator or has read access to everything.
110115
*

0 commit comments

Comments
 (0)