bug4275 Use keyword parser supporting quoted strings for web site search

This commit is contained in:
Benjamin Barth committed 2017-10-10 17:02:39 +02:00
1 parent 5c0d1b50f5
commit c0b091227b
1 file changed
+1 -1
@@ -43,7 +43,7 @@ public class GetSearchResultsAction implements SailingAction<ListResult<SearchRe
@Override
@GwtIncompatible
public ListResult<SearchResultDTO> execute(SailingDispatchContext ctx) throws DispatchException {
KeywordQuery searchQuery = new KeywordQuery(searchText.split("[ \t]+"));
KeywordQuery searchQuery = new KeywordQuery(Util.splitAlongWhitespaceRespectingDoubleQuotedPhrases(searchText));
RacingEventService service = ctx.getRacingEventService();
if (remoteServerName == null) {
return getListResult(service.search(searchQuery), ctx.getRequestBaseURL(), false);