Skip to content

Commit

Permalink
fix search error with long numbers in title record link tab
Browse files Browse the repository at this point in the history
  • Loading branch information
BartChris committed Feb 14, 2024
1 parent 484dfc8 commit 60a62af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ public List<ProcessDTO> findLinkableParentProcesses(String searchInput, int proj
BoolQueryBuilder processQuery = new BoolQueryBuilder()
.should(createSimpleWildcardQuery(ProcessTypeField.TITLE.getKey(), searchInput));
if (searchInput.matches("\\d*")) {
processQuery.should(new MatchQueryBuilder(ProcessTypeField.ID.getKey(), searchInput));
processQuery.should(new MatchQueryBuilder(ProcessTypeField.ID.getKey(), searchInput).lenient(true));
}
BoolQueryBuilder query = new BoolQueryBuilder().must(processQuery)
.must(new MatchQueryBuilder(ProcessTypeField.PROJECT_ID.getKey(), projectId))
Expand Down

0 comments on commit 60a62af

Please sign in to comment.