Esri/geoportal-server-catalog

Geoportal issue - unrecognized parameters: [from], [size], [sort] - Unable to load ./rest/metadata/item

G-NOCM opened this issue · 1 comments

Hi All,
I am trying to stand up Geoportal v2.6.5 catalogue and harvester using ArcGIS Portal Authentication by following the instructions here (https://github.com/Esri/geoportal-server-catalog/wiki/Installing-Geoportal-Server-2.6.5, https://github.com/Esri/geoportal-server-harvester/wiki/Installation-guide). Currently the catalogue, harvester and Elasticsearch all seem to start properly (no errors in logs) however I am receiving errors when attempting to search or create metadata records.
Doing a default search in Geoportal returns “request [/metadata/_doc/_search] contains unrecognized parameters: [from], [size], [sort]” with status 400. Using curl to send the request directly to Elasticsearch (i.e., ./elastic/metadata/item/_search) also returns this response. I note that if I remove the parameters the request is successful.
Further, trying to add a metadata record returns “An error occurred, your metadata was not saved. Unable to load ./rest/metadata/item?access_token=”, status 500.

I am not familiar with this software however I suspect that the issue may be caused by improperly configured instance of Elasticsearch, probably some additional config I need to run through. Wondering if anyone has come across this issue and can provide any insight into what the cause may be?

Many thanks in advance.
Gino

Windows 10 VM
Tomcat 9.0.62
JVM 17.0.2+8
Elasticsearch 8.1.2
Geoportal/Harvester 2.6.5

Hi again, All.
In case anyone has this same issue I managed to fix both by reverting Elasticsearch back to v7.9.3.