Skip to content

Commit

Permalink
Merge pull request #480 from NASA-PDS/products-route-only-latest
Browse files Browse the repository at this point in the history
apply onlyLatest() to /products route
  • Loading branch information
alexdunnjpl committed Jul 11, 2024
2 parents 0fd8b07 + d2cebb4 commit e249241
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public ResponseEntity<Object> productList(List<String> fields, List<String> keyw
new RegistrySearchRequestBuilder(this.registrySearchRequestBuilder);

SearchRequest searchRequest = registrySearchRequestBuilder.addQParam(q)
.addKeywordsParam(keywords).fields(fields).paginates(limit, sort, searchAfter).build();
.addKeywordsParam(keywords).fields(fields).paginates(limit, sort, searchAfter).onlyLatest().build();

SearchResponse<HashMap> searchResponse =
this.openSearchClient.search(searchRequest, HashMap.class);
Expand Down

0 comments on commit e249241

Please sign in to comment.