Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix: hmi-server] Use askem_object_limit instead of entity_limit with xdd #2220

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ResponseEntity<XDDResponse<DocumentsResponseOK>> getDocuments(
@RequestParam(required = false, name = "known_entities") String known_entities,
@RequestParam(required = false, name = "github_url") String github_url,
@RequestParam(required = false, name = "similar_to") String similar_to,
@RequestParam(required = false, name = "entity_limit", defaultValue = "5") String entity_limit
@RequestParam(required = false, name = "askem_object_limit", defaultValue = "5") String askem_object_limit
) {

// only go ahead with the query if at least one param is present
Expand Down Expand Up @@ -88,7 +88,7 @@ public ResponseEntity<XDDResponse<DocumentsResponseOK>> getDocuments(

XDDResponse<DocumentsResponseOK> doc = proxy.getDocuments(apiKey,
docid, doi, title, term, dataset, include_score, include_highlights, inclusive, full_results, max, per_page, dict, facets,
min_published, max_published, pubname, publisher, additional_fields, match, known_entities, github_url, similar_to, entity_limit);
min_published, max_published, pubname, publisher, additional_fields, match, known_entities, github_url, similar_to, askem_object_limit);

if (doc.getErrorMessage() != null) {
return ResponseEntity.internalServerError().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ XDDResponse<DocumentsResponseOK> getDocuments(
@RequestParam(required = false, name = "known_entities") String known_entities,
@RequestParam(required = false, name = "github_url") String github_url,
@RequestParam(required = false, name = "similar_to") String similar_to,
@RequestParam(required = false, name = "entity_limit", defaultValue = "5") String entity_limit
@RequestParam(required = false, name = "askem_object_limit", defaultValue = "5") String askem_object_limit
);

@GetMapping("/sets")
Expand Down
Loading