[GeoNetwork-users] Unable to start elasticsearch

Hi Geonetwork community,

I'm using geonetwork since early 2018 and this is a big and impressive
project, but I have to tell you that documentation isn't so clear, as I
would like to.

I say it as a native spanish language speaker and without formal
technological background (I'm sociologist)

Said that, I would like to tell you that I'm trying to finish installation
of a new 4.2.2.0 geonetwork instance at https://redhumus.org:8443/geonetwork

I'm using a Debian 11 VPS and could install elasticsearch and kibana

I' m receiving errors when trying to load indexes. There is a problem with
file origins or how I'm putting the code:

- Geonetwork site goes to this documentation site, but Elasticsearch
doesn't recognize some .json files. So I can't determine if I'm going well
or not.

Thanks in advance for your help.

I'm consulting:

https://www.geonetwork-opensource.org/manuals/4.0.x/en/maintainer-guide/statistics/setup-elasticsearch.html

Here I found instructions to put this indexes files to elasticsearch via
Curl:

cd /tmp
$ curl -O https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/features.json
$ curl -X PUT http://localhost:9200/gn-features -d @features.json
$ curl -O https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/records.json
$ curl -X PUT http://localhost:9200/gn-records -d @records.json
$ curl -O https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/searchlogs.json
$ curl -X PUT http://localhost:9200/gn-searchlogs -d @searchlogs.json

After managing SSL self certs and filetype rejections I think I could put
first file "features.json-

But the second is getting new errors: So I stopped for a while and tried
writting you, maybe there is a good way to do it I can't see:

I give:

curl -k -X PUT --user elastic:password https://localhost:9200/gn-records -H
"Content-Type: application/json" --data-binary @records.json

I receive:

{"error":{"root_cause":[{"type":"not_x_content_exception","reason":"Compressor
detection can only be called on some xcontent bytes or compressed xcontent
bytes"}],"type":"not_x_content_exception","reason":"Compressor detection
can only be called on some xcontent bytes or compressed xcontent
bytes"},"status":500}curl: (6) Could not resolve host: records.json
root@anonymised.com:/tmp# curl -k -X PUT --user elastic:afz89V2Epjh1=rZA6EFO
https://localhost:9200/gn-records -H "Content-Type: application/json"
--data-binary @records.json
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root
mapping definition has unsupported parameters: [_default_ :
{dynamic_templates=[{codelist={mapping={type=keyword}, match=codelist_*}},
{org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword}, useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean}, overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword},
resourceType={type=keyword}}}]"}],"type":"mapper_parsing_exception","reason":"Failed
to parse mapping: Root mapping definition has unsupported parameters:
[_default_ : {dynamic_templates=[{codelist={mapping={type=keyword},
match=codelist_*}}, {org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword}, useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean}, overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword},
resourceType={type=keyword}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root
mapping definition has unsupported parameters: [_default_ :
{dynamic_templates=[{codelist={mapping={type=keyword}, match=codelist_*}},
{org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword}, useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean}, overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword}, resourceType={type=keyword}}}]"}},"status":400}

--
----
Luis Miguel Sánchez Zoque
@kublaykan <http://www.twitter.com/kublaykan&gt;
http://redhumus.org
Copyleft. Hack the planet an have a fun day!!!
OSM USER: OMNBUS <http://wiki.openstreetmap.org/wiki/WikiProject_Colombia&gt;
https://primerrespondiente.wordpress.com
https://www.gnu.org/copyleft/

It might be the Elasticsearch version. Which one did you use?
I made a post about it recently.

https://github.com/geonetwork/core-geonetwork/issues/6855

On Tue, 28 Feb 2023 at 05:25, Miguel Sánchez via GeoNetwork-users <
geonetwork-users@lists.sourceforge.net> wrote:

Hi Geonetwork community,

I'm using geonetwork since early 2018 and this is a big and impressive
project, but I have to tell you that documentation isn't so clear, as I
would like to.

I say it as a native spanish language speaker and without formal
technological background (I'm sociologist)

Said that, I would like to tell you that I'm trying to finish installation
of a new 4.2.2.0 geonetwork instance at
https://redhumus.org:8443/geonetwork

I'm using a Debian 11 VPS and could install elasticsearch and kibana

I' m receiving errors when trying to load indexes. There is a problem with
file origins or how I'm putting the code:

- Geonetwork site goes to this documentation site, but Elasticsearch
doesn't recognize some .json files. So I can't determine if I'm going well
or not.

Thanks in advance for your help.

I'm consulting:

https://www.geonetwork-opensource.org/manuals/4.0.x/en/maintainer-guide/statistics/setup-elasticsearch.html

Here I found instructions to put this indexes files to elasticsearch via
Curl:

cd /tmp
$ curl -O
https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/features.json
$ curl -X PUT http://localhost:9200/gn-features -d @features.json
$ curl -O
https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/records.json
$ curl -X PUT http://localhost:9200/gn-records -d @records.json
$ curl -O
https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/searchlogs.json
$ curl -X PUT http://localhost:9200/gn-searchlogs -d @searchlogs.json

After managing SSL self certs and filetype rejections I think I could put
first file "features.json-

But the second is getting new errors: So I stopped for a while and tried
writting you, maybe there is a good way to do it I can't see:

I give:

curl -k -X PUT --user elastic:password https://localhost:9200/gn-records
-H
"Content-Type: application/json" --data-binary @records.json

I receive:

{"error":{"root_cause":[{"type":"not_x_content_exception","reason":"Compressor
detection can only be called on some xcontent bytes or compressed xcontent
bytes"}],"type":"not_x_content_exception","reason":"Compressor detection
can only be called on some xcontent bytes or compressed xcontent
bytes"},"status":500}curl: (6) Could not resolve host: records.json
root@anonymised.com:/tmp# curl -k -X PUT --user elastic:afz89V2Epjh1=rZA6EFO
https://localhost:9200/gn-records -H "Content-Type: application/json"
--data-binary @records.json
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root
mapping definition has unsupported parameters: [_default_ :
{dynamic_templates=[{codelist={mapping={type=keyword}, match=codelist_*}},
{org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword}, useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean}, overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword},

resourceType={type=keyword}}}]"}],"type":"mapper_parsing_exception","reason":"Failed
to parse mapping: Root mapping definition has unsupported parameters:
[_default_ : {dynamic_templates=[{codelist={mapping={type=keyword},
match=codelist_*}}, {org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword}, useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean}, overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword},

resourceType={type=keyword}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root
mapping definition has unsupported parameters: [_default_ :
{dynamic_templates=[{codelist={mapping={type=keyword}, match=codelist_*}},
{org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword}, useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean}, overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword},
resourceType={type=keyword}}}]"}},"status":400}

--
----
Luis Miguel Sánchez Zoque
@kublaykan <http://www.twitter.com/kublaykan&gt;
http://redhumus.org
Copyleft. Hack the planet an have a fun day!!!
OSM USER: OMNBUS <http://wiki.openstreetmap.org/wiki/WikiProject_Colombia&gt;
https://primerrespondiente.wordpress.com
https://www.gnu.org/copyleft/

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Good morning

I've just been through the same process following the same instructions and couldn't get Geonetwork 4.2.2 to work with ElasticSearch/Kibana version 8.6.2 at all. Going back to versions 7.17.8 worked for me. The indexes were picked up in ES and the search bar enabled in Geonetwork once I did that.

Ross

-----Original Message-----
From: Periklis Panagiotidis via GeoNetwork-users <geonetwork-users@lists.sourceforge.net>
Sent: 28 February 2023 08:12
To: Miguel Sánchez <migueldesplazamientocentro@...54...>
Cc: geonetwork-users@lists.sourceforge.net
Subject: [*Newsletter*] Re: [GeoNetwork-users] Unable to start elasticsearch

It might be the Elasticsearch version. Which one did you use?
I made a post about it recently.

https://github.com/geonetwork/core-geonetwork/issues/6855

On Tue, 28 Feb 2023 at 05:25, Miguel Sánchez via GeoNetwork-users < geonetwork-users@lists.sourceforge.net> wrote:

Hi Geonetwork community,

I'm using geonetwork since early 2018 and this is a big and impressive
project, but I have to tell you that documentation isn't so clear, as
I would like to.

I say it as a native spanish language speaker and without formal
technological background (I'm sociologist)

Said that, I would like to tell you that I'm trying to finish
installation of a new 4.2.2.0 geonetwork instance at
https://redhumus.org:8443/geonetwork

I'm using a Debian 11 VPS and could install elasticsearch and kibana

I' m receiving errors when trying to load indexes. There is a problem
with file origins or how I'm putting the code:

- Geonetwork site goes to this documentation site, but Elasticsearch
doesn't recognize some .json files. So I can't determine if I'm going
well or not.

Thanks in advance for your help.

I'm consulting:

https://www.geonetwork-opensource.org/manuals/4.0.x/en/maintainer-guid
e/statistics/setup-elasticsearch.html

Here I found instructions to put this indexes files to elasticsearch
via
Curl:

cd /tmp
$ curl -O
https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/
config/features.json $ curl -X PUT http://localhost:9200/gn-features
-d @features.json $ curl -O
https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/
config/records.json $ curl -X PUT http://localhost:9200/gn-records -d
@records.json $ curl -O
https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/
config/searchlogs.json $ curl -X PUT
http://localhost:9200/gn-searchlogs -d @searchlogs.json

After managing SSL self certs and filetype rejections I think I could
put first file "features.json-

But the second is getting new errors: So I stopped for a while and
tried writting you, maybe there is a good way to do it I can't see:

I give:

curl -k -X PUT --user elastic:password
https://localhost:9200/gn-records -H
"Content-Type: application/json" --data-binary @records.json

I receive:

{"error":{"root_cause":[{"type":"not_x_content_exception","reason":"Co
mpressor detection can only be called on some xcontent bytes or
compressed xcontent
bytes"}],"type":"not_x_content_exception","reason":"Compressor
detection can only be called on some xcontent bytes or compressed
xcontent
bytes"},"status":500}curl: (6) Could not resolve host: records.json
root@...1978...:/tmp# curl -k -X PUT --user elastic:afz89V2Epjh1=rZA6EFO
https://localhost:9200/gn-records -H "Content-Type: application/json"
--data-binary @records.json
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"R
oot mapping definition has unsupported parameters: [_default_ :
{dynamic_templates=[{codelist={mapping={type=keyword},
match=codelist_*}}, {org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword,
fielddata=true, analyzer=synInspireAnnexes, type=string},
match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword,
fielddata=true, analyzer=synInspireThemes, type=string},
match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records :
{properties={lineage={type=text}, serviceType={type=keyword},
isAboveThreshold={type=boolean}, rating={type=short},
geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword},
useLimitation={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword},
dateStamp={type=date}, harvesterId={type=keyword},
spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no,
type=string, doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword},
resourceAbstract={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, coordinateSystem={type=text,
fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean},
overviewUrl={type=text}, resolutionDistance={type=keyword},
location={type=geo_point}, linkProtocol={type=keyword},

resourceType={type=keyword}}}]"}],"type":"mapper_parsing_exception","r
eason":"Failed to parse mapping: Root mapping definition has
unsupported parameters:
[_default_ : {dynamic_templates=[{codelist={mapping={type=keyword},
match=codelist_*}}, {org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword,
fielddata=true, analyzer=synInspireAnnexes, type=string},
match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword,
fielddata=true, analyzer=synInspireThemes, type=string},
match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records :
{properties={lineage={type=text}, serviceType={type=keyword},
isAboveThreshold={type=boolean}, rating={type=short},
geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword},
useLimitation={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword},
dateStamp={type=date}, harvesterId={type=keyword},
spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no,
type=string, doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword},
resourceAbstract={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, coordinateSystem={type=text,
fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean},
overviewUrl={type=text}, resolutionDistance={type=keyword},
location={type=geo_point}, linkProtocol={type=keyword},

resourceType={type=keyword}}}]","caused_by":{"type":"mapper_parsing_ex
ception","reason":"Root mapping definition has unsupported parameters:
[_default_ :
{dynamic_templates=[{codelist={mapping={type=keyword},
match=codelist_*}}, {org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword,
fielddata=true, analyzer=synInspireAnnexes, type=string},
match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword,
fielddata=true, analyzer=synInspireThemes, type=string},
match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records :
{properties={lineage={type=text}, serviceType={type=keyword},
isAboveThreshold={type=boolean}, rating={type=short},
geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword},
useLimitation={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword},
dateStamp={type=date}, harvesterId={type=keyword},
spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no,
type=string, doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword},
resourceAbstract={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, coordinateSystem={type=text,
fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean},
overviewUrl={type=text}, resolutionDistance={type=keyword},
location={type=geo_point}, linkProtocol={type=keyword},
resourceType={type=keyword}}}]"}},"status":400}

--
----
Luis Miguel Sánchez Zoque
@kublaykan <http://www.twitter.com/kublaykan&gt;
http://redhumus.org
Copyleft. Hack the planet an have a fun day!!!
OSM USER: OMNBUS
<http://wiki.openstreetmap.org/wiki/WikiProject_Colombia&gt;
https://primerrespondiente.wordpress.com
https://www.gnu.org/copyleft/

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi, thanks for your replies,

El mar, 28 de feb. de 2023 2:12 a. m., Periklis Panagiotidis <
periklis.panagiotidis@anonymised.com> escribió:

It might be the Elasticsearch version. Which one did you use?

Yes, I installed latest one 8.6.2

I made a post about it recently.

https://github.com/geonetwork/core-geonetwork/issues/6855

Then, if I install the version you tested, the lines for creating indexes

published in geonetwork documentation Will work.

I'll give a chance to 8.6.2 and if I can't make it work I,'ll try your
solución

Besides that I think that there must be a way to create indexes for
elasticsearch 8.6.2 and documentation could be updated in near future. If I
get how yo I 'll share here to help.

Thanks

Thanks

On Tue, 28 Feb 2023 at 05:25, Miguel Sánchez via GeoNetwork-users <
geonetwork-users@lists.sourceforge.net> wrote:

Hi Geonetwork community,

I'm using geonetwork since early 2018 and this is a big and impressive
project, but I have to tell you that documentation isn't so clear, as I
would like to.

I say it as a native spanish language speaker and without formal
technological background (I'm sociologist)

Said that, I would like to tell you that I'm trying to finish installation
of a new 4.2.2.0 geonetwork instance at
https://redhumus.org:8443/geonetwork

I'm using a Debian 11 VPS and could install elasticsearch and kibana

I' m receiving errors when trying to load indexes. There is a problem with
file origins or how I'm putting the code:

- Geonetwork site goes to this documentation site, but Elasticsearch
doesn't recognize some .json files. So I can't determine if I'm going well
or not.

Thanks in advance for your help.

I'm consulting:

https://www.geonetwork-opensource.org/manuals/4.0.x/en/maintainer-guide/statistics/setup-elasticsearch.html

Here I found instructions to put this indexes files to elasticsearch via
Curl:

cd /tmp
$ curl -O
https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/features.json
$ curl -X PUT http://localhost:9200/gn-features -d @features.json
$ curl -O
https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/records.json
$ curl -X PUT http://localhost:9200/gn-records -d @records.json
$ curl -O
https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/searchlogs.json
$ curl -X PUT http://localhost:9200/gn-searchlogs -d @searchlogs.json

After managing SSL self certs and filetype rejections I think I could put
first file "features.json-

But the second is getting new errors: So I stopped for a while and tried
writting you, maybe there is a good way to do it I can't see:

I give:

curl -k -X PUT --user elastic:password https://localhost:9200/gn-records
-H
"Content-Type: application/json" --data-binary @records.json

I receive:

{"error":{"root_cause":[{"type":"not_x_content_exception","reason":"Compressor
detection can only be called on some xcontent bytes or compressed xcontent
bytes"}],"type":"not_x_content_exception","reason":"Compressor detection
can only be called on some xcontent bytes or compressed xcontent
bytes"},"status":500}curl: (6) Could not resolve host: records.json
root@anonymised.com:/tmp# curl -k -X PUT --user elastic:afz89V2Epjh1=rZA6EFO
https://localhost:9200/gn-records -H "Content-Type: application/json"
--data-binary @records.json
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root
mapping definition has unsupported parameters: [_default_ :
{dynamic_templates=[{codelist={mapping={type=keyword}, match=codelist_*}},
{org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword},
useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean},
overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword},

resourceType={type=keyword}}}]"}],"type":"mapper_parsing_exception","reason":"Failed
to parse mapping: Root mapping definition has unsupported parameters:
[_default_ : {dynamic_templates=[{codelist={mapping={type=keyword},
match=codelist_*}}, {org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword},
useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean},
overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword},

resourceType={type=keyword}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root
mapping definition has unsupported parameters: [_default_ :
{dynamic_templates=[{codelist={mapping={type=keyword}, match=codelist_*}},
{org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword},
useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean},
overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword},
resourceType={type=keyword}}}]"}},"status":400}

--
----
Luis Miguel Sánchez Zoque
@kublaykan <http://www.twitter.com/kublaykan&gt;
http://redhumus.org
Copyleft. Hack the planet an have a fun day!!!
OSM USER: OMNBUS <http://wiki.openstreetmap.org/wiki/WikiProject_Colombia
>
https://primerrespondiente.wordpress.com
https://www.gnu.org/copyleft/

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Hi, I'm ll try that versión then,

Thank you

El mar, 28 de feb. de 2023 2:22 a. m., Ross McDonald <McDonaldR@anonymised.com>
escribió:

Good morning

I've just been through the same process following the same instructions
and couldn't get Geonetwork 4.2.2 to work with ElasticSearch/Kibana version
8.6.2 at all. Going back to versions 7.17.8 worked for me. The indexes were
picked up in ES and the search bar enabled in Geonetwork once I did that.

Ross

-----Original Message-----
From: Periklis Panagiotidis via GeoNetwork-users <
geonetwork-users@lists.sourceforge.net>
Sent: 28 February 2023 08:12
To: Miguel Sánchez <migueldesplazamientocentro@anonymised.com>
Cc: geonetwork-users@lists.sourceforge.net
Subject: [*Newsletter*] Re: [GeoNetwork-users] Unable to start
elasticsearch

It might be the Elasticsearch version. Which one did you use?
I made a post about it recently.

https://github.com/geonetwork/core-geonetwork/issues/6855

On Tue, 28 Feb 2023 at 05:25, Miguel Sánchez via GeoNetwork-users <
geonetwork-users@lists.sourceforge.net> wrote:

> Hi Geonetwork community,
>
> I'm using geonetwork since early 2018 and this is a big and impressive
> project, but I have to tell you that documentation isn't so clear, as
> I would like to.
>
> I say it as a native spanish language speaker and without formal
> technological background (I'm sociologist)
>
> Said that, I would like to tell you that I'm trying to finish
> installation of a new 4.2.2.0 geonetwork instance at
> https://redhumus.org:8443/geonetwork
>
> I'm using a Debian 11 VPS and could install elasticsearch and kibana
>
> I' m receiving errors when trying to load indexes. There is a problem
> with file origins or how I'm putting the code:
>
> - Geonetwork site goes to this documentation site, but Elasticsearch
> doesn't recognize some .json files. So I can't determine if I'm going
> well or not.
>
> Thanks in advance for your help.
>
> I'm consulting:
>
>
> https://www.geonetwork-opensource.org/manuals/4.0.x/en/maintainer-guid
> e/statistics/setup-elasticsearch.html
>
> Here I found instructions to put this indexes files to elasticsearch
> via
> Curl:
>
>
> cd /tmp
> $ curl -O
> https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/
> config/features.json $ curl -X PUT http://localhost:9200/gn-features
> -d @features.json $ curl -O
> https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/
> config/records.json $ curl -X PUT http://localhost:9200/gn-records -d
> @records.json $ curl -O
> https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/
> config/searchlogs.json $ curl -X PUT
> http://localhost:9200/gn-searchlogs -d @searchlogs.json
>
>
> After managing SSL self certs and filetype rejections I think I could
> put first file "features.json-
>
> But the second is getting new errors: So I stopped for a while and
> tried writting you, maybe there is a good way to do it I can't see:
>
> I give:
>
> curl -k -X PUT --user elastic:password
> https://localhost:9200/gn-records -H
> "Content-Type: application/json" --data-binary @records.json
>
> I receive:
>
>
> {"error":{"root_cause":[{"type":"not_x_content_exception","reason":"Co
> mpressor detection can only be called on some xcontent bytes or
> compressed xcontent
> bytes"}],"type":"not_x_content_exception","reason":"Compressor
> detection can only be called on some xcontent bytes or compressed
> xcontent
> bytes"},"status":500}curl: (6) Could not resolve host: records.json
> root@anonymised.com:/tmp# curl -k -X PUT --user elastic:afz89V2Epjh1=rZA6EFO
> https://localhost:9200/gn-records -H "Content-Type: application/json"
> --data-binary @records.json
> {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"R
> oot mapping definition has unsupported parameters: [_default_ :
> {dynamic_templates=[{codelist={mapping={type=keyword},
> match=codelist_*}}, {org={mapping={type=keyword}, match=*Org*}},
> {contact={mapping={type=keyword}, match=*contact*}},
> {date={mapping={type=date}, match=*Date*}},
> {dateMonth={mapping={type=keyword}, match=*Month*}},
> {dateYear={mapping={type=short}, match=*Year*}},
> {measure={mapping={type=keyword}, match=measure_*}},
> {operationAllowed={mapping={type=keyword}, match=op*}},
> {validationStatus={mapping={type=keyword}, match=valid*}},
> {synInspireAnnexesType={mapping={search_analyzer=keyword,
> fielddata=true, analyzer=synInspireAnnexes, type=string},
> match=inspireAnnex*}},
> {synInspireThemeType={mapping={search_analyzer=keyword,
> fielddata=true, analyzer=synInspireThemes, type=string},
> match=inspireTheme*}},
> {inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
> analyzer=keepInspireServiceTypes, type=string},
> match=inspireServiceType}}]}] [records :
> {properties={lineage={type=text}, serviceType={type=keyword},
> isAboveThreshold={type=boolean}, rating={type=short},
> geom={precision=10km, tree=quadtree, type=geo_shape},
> resourceCredit={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, resourceLanguage={type=keyword},
> useLimitation={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, linkUrl={type=text},
> resolutionScaleDenominator={type=integer}, id={type=keyword},
> tag={type=keyword}, metadataIdentifier={type=keyword},
> hasInspireTheme={type=boolean}, resourceTitle={type=text,
> fields={keyword={ignore_above=256, type=keyword}}},
> inspireThemeNumber={type=short}, resourceAltTitle={type=text,
> fields={keyword={ignore_above=256, type=keyword}}},
> hasxlinks={type=boolean}, tagNumber={type=short},
> otherConstraints={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, documentStandard={type=keyword},
> dateStamp={type=date}, harvesterId={type=keyword},
> spatialRepresentationType={type=keyword},
> isTemplate={type=keyword}, topic={type=keyword},
> isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
> documentType={type=keyword}, isOpenData={type=keyword},
> pointOfTruthURL={type=text}, document={index=no, type=string,
> doc_values=false}, link={type=text}, validReport={index=no,
> type=string, doc_values=false}, mainLanguage={type=keyword},
> recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
> groupPublished={type=keyword}, scope={type=keyword},
> popularity={type=short}, root={type=keyword},
> resourceAbstract={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, coordinateSystem={type=text,
> fields={keyword={ignore_above=256,
> type=keyword}}}, accessConstraints={type=text,
> fields={keyword={ignore_above=256, type=keyword}}},
> hasOverview={type=boolean}, owner={type=keyword},
> standardName={type=keyword}, isSchemaValid={type=boolean},
> groupOwner={type=keyword}, isValid={type=boolean},
> overviewUrl={type=text}, resolutionDistance={type=keyword},
> location={type=geo_point}, linkProtocol={type=keyword},
>
> resourceType={type=keyword}}}]"}],"type":"mapper_parsing_exception","r
> eason":"Failed to parse mapping: Root mapping definition has
> unsupported parameters:
> [_default_ : {dynamic_templates=[{codelist={mapping={type=keyword},
> match=codelist_*}}, {org={mapping={type=keyword}, match=*Org*}},
> {contact={mapping={type=keyword}, match=*contact*}},
> {date={mapping={type=date}, match=*Date*}},
> {dateMonth={mapping={type=keyword}, match=*Month*}},
> {dateYear={mapping={type=short}, match=*Year*}},
> {measure={mapping={type=keyword}, match=measure_*}},
> {operationAllowed={mapping={type=keyword}, match=op*}},
> {validationStatus={mapping={type=keyword}, match=valid*}},
> {synInspireAnnexesType={mapping={search_analyzer=keyword,
> fielddata=true, analyzer=synInspireAnnexes, type=string},
> match=inspireAnnex*}},
> {synInspireThemeType={mapping={search_analyzer=keyword,
> fielddata=true, analyzer=synInspireThemes, type=string},
> match=inspireTheme*}},
> {inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
> analyzer=keepInspireServiceTypes, type=string},
> match=inspireServiceType}}]}] [records :
> {properties={lineage={type=text}, serviceType={type=keyword},
> isAboveThreshold={type=boolean}, rating={type=short},
> geom={precision=10km, tree=quadtree, type=geo_shape},
> resourceCredit={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, resourceLanguage={type=keyword},
> useLimitation={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, linkUrl={type=text},
> resolutionScaleDenominator={type=integer}, id={type=keyword},
> tag={type=keyword}, metadataIdentifier={type=keyword},
> hasInspireTheme={type=boolean}, resourceTitle={type=text,
> fields={keyword={ignore_above=256, type=keyword}}},
> inspireThemeNumber={type=short}, resourceAltTitle={type=text,
> fields={keyword={ignore_above=256, type=keyword}}},
> hasxlinks={type=boolean}, tagNumber={type=short},
> otherConstraints={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, documentStandard={type=keyword},
> dateStamp={type=date}, harvesterId={type=keyword},
> spatialRepresentationType={type=keyword},
> isTemplate={type=keyword}, topic={type=keyword},
> isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
> documentType={type=keyword}, isOpenData={type=keyword},
> pointOfTruthURL={type=text}, document={index=no, type=string,
> doc_values=false}, link={type=text}, validReport={index=no,
> type=string, doc_values=false}, mainLanguage={type=keyword},
> recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
> groupPublished={type=keyword}, scope={type=keyword},
> popularity={type=short}, root={type=keyword},
> resourceAbstract={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, coordinateSystem={type=text,
> fields={keyword={ignore_above=256,
> type=keyword}}}, accessConstraints={type=text,
> fields={keyword={ignore_above=256, type=keyword}}},
> hasOverview={type=boolean}, owner={type=keyword},
> standardName={type=keyword}, isSchemaValid={type=boolean},
> groupOwner={type=keyword}, isValid={type=boolean},
> overviewUrl={type=text}, resolutionDistance={type=keyword},
> location={type=geo_point}, linkProtocol={type=keyword},
>
> resourceType={type=keyword}}}]","caused_by":{"type":"mapper_parsing_ex
> ception","reason":"Root mapping definition has unsupported parameters:
> [_default_ :
> {dynamic_templates=[{codelist={mapping={type=keyword},
> match=codelist_*}}, {org={mapping={type=keyword}, match=*Org*}},
> {contact={mapping={type=keyword}, match=*contact*}},
> {date={mapping={type=date}, match=*Date*}},
> {dateMonth={mapping={type=keyword}, match=*Month*}},
> {dateYear={mapping={type=short}, match=*Year*}},
> {measure={mapping={type=keyword}, match=measure_*}},
> {operationAllowed={mapping={type=keyword}, match=op*}},
> {validationStatus={mapping={type=keyword}, match=valid*}},
> {synInspireAnnexesType={mapping={search_analyzer=keyword,
> fielddata=true, analyzer=synInspireAnnexes, type=string},
> match=inspireAnnex*}},
> {synInspireThemeType={mapping={search_analyzer=keyword,
> fielddata=true, analyzer=synInspireThemes, type=string},
> match=inspireTheme*}},
> {inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
> analyzer=keepInspireServiceTypes, type=string},
> match=inspireServiceType}}]}] [records :
> {properties={lineage={type=text}, serviceType={type=keyword},
> isAboveThreshold={type=boolean}, rating={type=short},
> geom={precision=10km, tree=quadtree, type=geo_shape},
> resourceCredit={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, resourceLanguage={type=keyword},
> useLimitation={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, linkUrl={type=text},
> resolutionScaleDenominator={type=integer}, id={type=keyword},
> tag={type=keyword}, metadataIdentifier={type=keyword},
> hasInspireTheme={type=boolean}, resourceTitle={type=text,
> fields={keyword={ignore_above=256, type=keyword}}},
> inspireThemeNumber={type=short}, resourceAltTitle={type=text,
> fields={keyword={ignore_above=256, type=keyword}}},
> hasxlinks={type=boolean}, tagNumber={type=short},
> otherConstraints={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, documentStandard={type=keyword},
> dateStamp={type=date}, harvesterId={type=keyword},
> spatialRepresentationType={type=keyword},
> isTemplate={type=keyword}, topic={type=keyword},
> isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
> documentType={type=keyword}, isOpenData={type=keyword},
> pointOfTruthURL={type=text}, document={index=no, type=string,
> doc_values=false}, link={type=text}, validReport={index=no,
> type=string, doc_values=false}, mainLanguage={type=keyword},
> recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
> groupPublished={type=keyword}, scope={type=keyword},
> popularity={type=short}, root={type=keyword},
> resourceAbstract={type=text, fields={keyword={ignore_above=256,
> type=keyword}}}, coordinateSystem={type=text,
> fields={keyword={ignore_above=256,
> type=keyword}}}, accessConstraints={type=text,
> fields={keyword={ignore_above=256, type=keyword}}},
> hasOverview={type=boolean}, owner={type=keyword},
> standardName={type=keyword}, isSchemaValid={type=boolean},
> groupOwner={type=keyword}, isValid={type=boolean},
> overviewUrl={type=text}, resolutionDistance={type=keyword},
> location={type=geo_point}, linkProtocol={type=keyword},
> resourceType={type=keyword}}}]"}},"status":400}
>
>
> --
> ----
> Luis Miguel Sánchez Zoque
> @kublaykan <http://www.twitter.com/kublaykan&gt;
> http://redhumus.org
> Copyleft. Hack the planet an have a fun day!!!
> OSM USER: OMNBUS
> <http://wiki.openstreetmap.org/wiki/WikiProject_Colombia&gt;
> https://primerrespondiente.wordpress.com
> https://www.gnu.org/copyleft/
>
> _______________________________________________
> GeoNetwork-users mailing list
> GeoNetwork-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork