[GeoNetwork-devel] Configuring elasticsearch

Hi list!

I have been trying to set up elasticsearch (installed 7.2.x ) in my Geonetwork 3.10.2 in a debian server

I have been following the instructions on: https://geonetwork-opensource.org/manuals/3.10.x/en/maintainer-guide/installing/installing-index.html#

I haven’t been able to create the default index, when I try to execute:
curl -X PUT http://localhost:9200/gn-features -H ‘Content-Type: application/json’ -d @features.json

I got this error:
{“error”:“Content-Type header [application/x-www-form-urlencoded] is not supported”,“status”:406}

So I added the Content-Type:
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 -H ‘Content-Type: application/json’ -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 -H ‘Content-Type: application/json’-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 -H ‘Content-Type: application/json’

But I still get errors:
{
“error” : {
“root_cause” : [
{
“type” : “mapper_parsing_exception”,
“reason” : “Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”
}
],
“type” : “mapper_parsing_exception”,
“reason” : “Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”,
“caused_by” : {
“type” : “mapper_parsing_exception”,
“reason” : “Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”
}
},
“status” : 400
}

What am I doing wrong? I’m little lost, so any help configuring elastic will be much appreciated.

Thanks

Malena

Hi, if using 3.10.2 you should get

https://raw.githubusercontent.com/geonetwork/core-geonetwork/master/es/config/records.json
instead of

https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/*.json

probably.

Cheers.
Francois

Le ven. 22 mai 2020 à 16:55, Malena Libman <malena.libman@anonymised.com> a écrit :

Hi list!

I have been trying to set up elasticsearch (installed 7.2.x ) in my Geonetwork 3.10.2 in a debian server

I have been following the instructions on: https://geonetwork-opensource.org/manuals/3.10.x/en/maintainer-guide/installing/installing-index.html#

I haven’t been able to create the default index, when I try to execute:
curl -X PUT http://localhost:9200/gn-features -H ‘Content-Type: application/json’ -d @features.json

I got this error:
{“error”:“Content-Type header [application/x-www-form-urlencoded] is not supported”,“status”:406}

So I added the Content-Type:
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 -H ‘Content-Type: application/json’ -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 -H ‘Content-Type: application/json’-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 -H ‘Content-Type: application/json’

But I still get errors:
{
“error” : {
“root_cause” : [
{
“type” : “mapper_parsing_exception”,
“reason” : “Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”
}
],
“type” : “mapper_parsing_exception”,
“reason” : “Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”,
“caused_by” : {
“type” : “mapper_parsing_exception”,
“reason” : “Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”
}
},
“status” : 400
}

What am I doing wrong? I’m little lost, so any help configuring elastic will be much appreciated.

Thanks

Malena


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

It was so simple! Thanks Francois!

Is there a way to check that elastic is correctly configured in Geonetwork?

Cheers

Malena

El vie., 22 may. 2020 a las 12:41, Francois Prunayre (<fx.prunayre@anonymised.com>) escribió:

Hi, if using 3.10.2 you should get

https://raw.githubusercontent.com/geonetwork/core-geonetwork/master/es/config/records.json
instead of

https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/*.json

probably.

Cheers.
Francois

Le ven. 22 mai 2020 à 16:55, Malena Libman <malena.libman@anonymised.com1…> a écrit :

Hi list!

I have been trying to set up elasticsearch (installed 7.2.x ) in my Geonetwork 3.10.2 in a debian server

I have been following the instructions on: https://geonetwork-opensource.org/manuals/3.10.x/en/maintainer-guide/installing/installing-index.html#

I haven’t been able to create the default index, when I try to execute:
curl -X PUT http://localhost:9200/gn-features -H ‘Content-Type: application/json’ -d @features.json

I got this error:
{“error”:“Content-Type header [application/x-www-form-urlencoded] is not supported”,“status”:406}

So I added the Content-Type:
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 -H ‘Content-Type: application/json’ -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 -H ‘Content-Type: application/json’-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 -H ‘Content-Type: application/json’

But I still get errors:
{
“error” : {
“root_cause” : [
{
“type” : “mapper_parsing_exception”,
“reason” : “Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”
}
],
“type” : “mapper_parsing_exception”,
“reason” : “Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”,
“caused_by” : {
“type” : “mapper_parsing_exception”,
“reason” : “Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”
}
},
“status” : 400
}

What am I doing wrong? I’m little lost, so any help configuring elastic will be much appreciated.

Thanks

Malena


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

I think it’s configured OK, but I have this error:

image.png

So it doesn’t index the layer on the map. Maybe I missed something?

Thanks again.

Malena

El vie., 22 may. 2020 a las 13:37, Malena Libman (<malena.libman@anonymised.com>) escribió:

It was so simple! Thanks Francois!

Is there a way to check that elastic is correctly configured in Geonetwork?

Cheers

Malena

El vie., 22 may. 2020 a las 12:41, Francois Prunayre (<fx.prunayre@anonymised.com…>) escribió:

Hi, if using 3.10.2 you should get

https://raw.githubusercontent.com/geonetwork/core-geonetwork/master/es/config/records.json
instead of

https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/*.json

probably.

Cheers.
Francois

Le ven. 22 mai 2020 à 16:55, Malena Libman <malena.libman@anonymised.com> a écrit :

Hi list!

I have been trying to set up elasticsearch (installed 7.2.x ) in my Geonetwork 3.10.2 in a debian server

I have been following the instructions on: https://geonetwork-opensource.org/manuals/3.10.x/en/maintainer-guide/installing/installing-index.html#

I haven’t been able to create the default index, when I try to execute:
curl -X PUT http://localhost:9200/gn-features -H ‘Content-Type: application/json’ -d @features.json

I got this error:
{“error”:“Content-Type header [application/x-www-form-urlencoded] is not supported”,“status”:406}

So I added the Content-Type:
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 -H ‘Content-Type: application/json’ -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 -H ‘Content-Type: application/json’-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 -H ‘Content-Type: application/json’

But I still get errors:
{
“error” : {
“root_cause” : [
{
“type” : “mapper_parsing_exception”,
“reason” : “Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”
}
],
“type” : “mapper_parsing_exception”,
“reason” : “Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”,
“caused_by” : {
“type” : “mapper_parsing_exception”,
“reason” : “Root mapping definition has unsupported parameters: [default : {properties={fieldLowerValue={type=keyword}, documentType={type=keyword}, recordType={type=keyword}, query={type=keyword}, spatialFilter={type=keyword}, autogenerated={type=keyword}, language={type=keyword}, fieldValue={type=keyword}, hits={type=integer}, path={type=keyword}, fieldUpperValue={type=keyword}, field={type=keyword}, similarity={type=keyword}, host={type=keyword}, isSimple={type=keyword}, sortBy={type=keyword}, location={type=geo_point}, id={type=keyword}, timestamp={type=date}}}]”
}
},
“status” : 400
}

What am I doing wrong? I’m little lost, so any help configuring elastic will be much appreciated.

Thanks

Malena


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