-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Search requests fail on a fresh install with the GEMET INSPIRE thesaurus present #8535
Comments
Interestingly, when such a state happens, the ElasticSearch index mapping for the "OrgForResourceObject": {
"properties": {
"default": {
"type": "text",
"fields": {
"keyword": { "type": "keyword", "ignore_above": 256 }
}
},
"langeng": {
"type": "text",
"fields": {
"keyword": { "type": "keyword", "ignore_above": 256 }
}
}
}
}
{
"org": {
"match": "*Org*Object",
"mapping": {
"type": "object",
"properties": {
"default": {
"type": "keyword",
"copy_to": ["any.default", "organisationName.default"]
},
"langeng": {
"type": "keyword",
"copy_to": ["any.langeng", "organisationName.langeng"]
},
...
"link": {
"type": "keyword"
}
}
}
}
}, |
@jahow it is strange, if you reproduce the problem again, please check to run It's not a solution, but to check if it works that way, as somehow it seems that by creating the wrong index you are not using the right index configuration. |
Yes theres's something going on where the index is created without the proper configuration, looking into it |
Ok, for fields defined in |
Indeed, I think what happens is that in some scenario the I've seen this happen as well for thesauri that were not correctly registered by GeoNetwork on startup. This is going to be tricky to track down though... |
@jahow in any case the error message you point, it happens always when the catalog / index is empty. Loading some metadata fixes it, but I haven't check the exact error. |
Can this be related to Elasticsearch / Update to 8.14.3. #8337? That is a major change from 4.4.4 |
@matself I really don't think this is related to the ES version. I have seen this happening both on 7.x and 8.x, although I can't seem to reproduce this lately... Still trying to figure out what is the differentiating factor here. |
Perhaps not ES version, but possibly code changes related to ES broke the
previous functionality?
Den fre 6 dec. 2024 kl 15:10 skrev Olivia Guyot ***@***.***>:
… @matself <https://github.com/matself> I really don't think this is
related to the ES version. I have seen this happening both on 7.x and 8.x,
although I can't seem to reproduce this lately... Still trying to figure
out what is the differentiating factor here.
—
Reply to this email directly, view it on GitHub
<#8535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBIZCDL2RJTHVTIXU2FXPL2EGV4ZAVCNFSM6AAAAABTCMZIR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRTGMZTGNRQGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*GisKraft*, Geodatakonsult
Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
|
@matself If you use an older version than 8.14 of Elasticsearch server, you need to create the index manually as described in #8337 (comment), but I'm not sure if the issue you are facing is related to this. I would try if possible to upgrade to Elasticsearch server 8.14 and verify if the issue still happens. |
Describe the bug
On a fresh install of GeoNetwork 4.4.7-SNAPSHOT, if the GEMET INSPIRE thesaurus is present and no record has been added yet, search requests will sometimes never succeed. The error is typically an HTTP 500 error with the following body:
The enclosed ElasticSearch error is typically (field can vary):
This does not happen reliably all the time.
To Reproduce
Steps to reproduce the behavior:
web/src/main/webapp/WEB-INF/data/config/codelist/external/thesauri/theme
directorymvn jetty:run
An error message shows up and the results list is broken:
Expected behavior
No error, the message "no records yet" appears.
Log file
No significant message in the GeoNetwork log.
Additional context
Preliminary discussion on Discourse: https://discourse.osgeo.org/t/clean-out-geonetwork-for-re-install/111527/13
The text was updated successfully, but these errors were encountered: