Configuration options discovered from source (documentation change suggestions)#9110
Open
ZakarFin wants to merge 4 commits intogeonetwork:mainfrom
Open
Configuration options discovered from source (documentation change suggestions)#9110ZakarFin wants to merge 4 commits intogeonetwork:mainfrom
ZakarFin wants to merge 4 commits intogeonetwork:mainfrom
Conversation
josegar74
reviewed
Feb 3, 2026
| Alternative environment variables are also supported for non-container (WAR-file) environments: | ||
|
|
||
| ``` text | ||
| GEONETWORK_DB_USERNAME=example |
Member
There was a problem hiding this comment.
I would document also GEONETWORK_DB_TYPE
Author
There was a problem hiding this comment.
There's a comment on the pom.xml that GEONETWORK_DB_TYPE could be set with env variables, but I'm not sure if that is true. It's handled differently and can be set with the Java System property that is the other suggested change to this file on the pull request. It's been a while so I can't remember if I actually tested, but I'm not sure how it would work based on the current pom.xml. It's probably done differently on the pom.xml to have a reasonable default value if nothing is passed with env.
10 tasks
Contributor
Co-authored-by: Jose García <josegar74@gmail.com>
Co-authored-by: Jose García <josegar74@gmail.com>
ZakarFin
commented
Feb 7, 2026
| curl -X PUT http://localhost:9200/gn-features -H 'Content-Type: application/json' -d @features.json | ||
| curl -X PUT http://localhost:9200/gn-records -H 'Content-Type: application/json' -d @records.json | ||
| curl -X PUT http://localhost:9200/gn-searchlogs -H 'Content-Type: application/json' -d @searchlogs.json | ||
| ``` |
Author
There was a problem hiding this comment.
These are based on
Lines 1607 to 1611 in e8cee08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Apparently documentation has moved to the main repository so I'm suggesting the changes made in geonetwork/doc#248 to be migrated to this documentation. We've been tinkering with GeoNetwork migration from 3.x to 4.x for some time now and looking at the code I noticed these configuration options as well. Also noticed that the indexes are by default prefixed with
gn-(https://github.com/geonetwork/core-geonetwork/blob/4.2.13/pom.xml#L1565-L1569).I'm not sure if you want to have links to source code in the documentation or if the defaults are different in the prepackaged versions of WAR-file or the Containerized setup. These are the ones that are defaulted when building from source. As we are migrating to 4.2.x before continuing to go for 4.4.x things might have changed, but at least raising awareness for someone more experienced with GN to take a look at the docs.
Maybe also take a look at this: geonetwork/doc#249 as it seems the path to
encryptor.propertieson the docs was wrong (in our experience).Checklist
mainbranch, backports managed with labelREADME.mdfilespom.xmldependency management. Update build documentation with intended library use and library tutorials or documentation