Skip to content

Commit

Permalink
Fix query field name in OverviewIndexFieldUpdater to update the metad…
Browse files Browse the repository at this point in the history
…ata overview in the index
  • Loading branch information
josegar74 authored and fxprunayre committed Feb 14, 2024
1 parent dd0485c commit 4bf24e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//=============================================================================
//=== Copyright (C) 2001-2023 Food and Agriculture Organization of the
//=== Copyright (C) 2001-2024 Food and Agriculture Organization of the
//=== United Nations (FAO-UN), United Nations World Food Programme (WFP)
//=== and United Nations Environment Programme (UNEP)
//===
Expand Down Expand Up @@ -63,7 +63,7 @@ private void processOverview(String id) {
SearchResponse response = null;
try {
response = searchManager.query(String.format(
"+id:\"%s\" _exists_:overview.url -_exists_:overview.data",
"+_id:\"%s\" _exists_:overview.url -_exists_:overview.data",
id), null, source, 0, 1);
ObjectMapper objectMapper = new ObjectMapper();
response.hits().hits().forEach(h -> {
Expand Down

0 comments on commit 4bf24e8

Please sign in to comment.