Esri / geoportal-server-catalog

Esri Geoportal Server is a next generation open-source metadata catalog and editor, based on elasticsearch.
https://www.esri.com/en-us/arcgis/products/geoportal-server/overview
Apache License 2.0
97 stars 60 forks source link

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

Closed G-NOCM closed 2 years ago

G-NOCM commented 2 years ago

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

G-NOCM commented 2 years ago

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