Skip to content

Commit

Permalink
Changed latest event sender query from keyword field to text field (#106
Browse files Browse the repository at this point in the history
)

Signed-off-by: Brandon Shien <[email protected]>
  • Loading branch information
bshien authored Nov 12, 2024
1 parent dbc4a1b commit 259544c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public List<String> getEventTypes(OpenSearchUtil openSearchUtil) {
public Optional<LatestEventData> queryLatestEvent(String repo, String userLogin, String eventType, OpenSearchUtil openSearchUtil) {
BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();
boolQueryBuilder.must(QueryBuilders.matchQuery("repository.keyword", repo));
boolQueryBuilder.must(QueryBuilders.matchQuery("sender.keyword", userLogin));
boolQueryBuilder.must(QueryBuilders.matchQuery("sender", userLogin));
boolQueryBuilder.must(QueryBuilders.matchQuery("type.keyword", eventType));
SearchRequest searchRequest = new SearchRequest(GITHUB_EVENTS_INDEX);
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
Expand Down

0 comments on commit 259544c

Please sign in to comment.