Skip to content

Commit

Permalink
Änderungen für TokenSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
RDBloese committed Sep 6, 2023
1 parent e32140b commit c420e40
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/tla/backend/es/query/TokenSearchQueryBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ public class TokenSearchQueryBuilder extends ESQueryBuilder implements MultiLing
public String nestedPath() {
return "tokens.";
}

public void setTokenID(String tokenID) {
if (tokenID != null) {
this.must(
QueryBuilders.termQuery(
String.format("%sid", this.nestedPath()),
tokenID
)
);
}
}

public void setLemma(Lemmatization lemma) {
if (lemma != null && !lemma.isEmpty()) {
Expand Down

0 comments on commit c420e40

Please sign in to comment.