Skip to content

Commit

Permalink
Fix variant filter (hex!)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerning committed Oct 17, 2023
1 parent 89a0d53 commit f014223
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void setContext(Context context) {
if (textId != null) {
log.info("sentence query: receive {} textIDs", textId);
textQuery.must(QueryBuilders.termQuery("context.textId", textId)); // Set text ID of which sentences should be retrieved
textQuery.mustNot(QueryBuilders.regexpQuery("id", ".*\\-([0-9][1-9]|[0-9]+[0-9][0-9])")); // Sort out all sentence reading variants except for "-00"
textQuery.must(QueryBuilders.regexpQuery("id", "[^\\-]*|.*\\-00")); // Sort out all sentence reading variants except for "-00"
this.filter(textQuery);
}

Expand Down

0 comments on commit f014223

Please sign in to comment.