Configuring elasticsearch

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Configuring elasticsearch

Malena Libman
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 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:

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Configuring elasticsearch

Francois Prunayre

Le ven. 22 mai 2020 à 16:55, Malena Libman <[hidden email]> 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 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:

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Configuring elasticsearch

Malena Libman
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 (<[hidden email]>) escribió:

Le ven. 22 mai 2020 à 16:55, Malena Libman <[hidden email]> 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 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:

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Configuring elasticsearch

Malena Libman
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 (<[hidden email]>) 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 (<[hidden email]>) escribió:

Le ven. 22 mai 2020 à 16:55, Malena Libman <[hidden email]> 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 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:

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork