mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Fix findSubmitAuthorized endpoint to support queries by starts with
This commit is contained in:
@@ -1010,7 +1010,7 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
|||||||
if (StringUtils.isNotBlank(q)) {
|
if (StringUtils.isNotBlank(q)) {
|
||||||
StringBuilder buildQuery = new StringBuilder();
|
StringBuilder buildQuery = new StringBuilder();
|
||||||
String escapedQuery = ClientUtils.escapeQueryChars(q);
|
String escapedQuery = ClientUtils.escapeQueryChars(q);
|
||||||
buildQuery.append(escapedQuery).append(" OR ").append(escapedQuery).append("*");
|
buildQuery.append("(").append(escapedQuery).append(" OR ").append(escapedQuery).append("*").append(")");
|
||||||
discoverQuery.setQuery(buildQuery.toString());
|
discoverQuery.setQuery(buildQuery.toString());
|
||||||
}
|
}
|
||||||
DiscoverResult resp = searchService.search(context, discoverQuery);
|
DiscoverResult resp = searchService.search(context, discoverQuery);
|
||||||
|
Reference in New Issue
Block a user