Skip to content

Commit

Permalink
Textsätze-Suche: keine Varianten außer "-00"
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerning committed Oct 11, 2023
1 parent 31ce725 commit 89a0d53
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public void setContext(Context context) {
String textId = context.getTextId();
if (textId != null) {
log.info("sentence query: receive {} textIDs", textId);
textQuery.must(QueryBuilders.termQuery("context.textId", 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"
this.filter(textQuery);
}

Expand Down

0 comments on commit 89a0d53

Please sign in to comment.