Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geo_shape points_only not working #13650

Closed
Eschon opened this issue Sep 18, 2015 · 7 comments
Closed

geo_shape points_only not working #13650

Eschon opened this issue Sep 18, 2015 · 7 comments

Comments

@Eschon
Copy link

Eschon commented Sep 18, 2015

I downloaded the 2.0-beta2 and decided to try out the points_only option for geo_shapes that was added in #12893 but I couldn't get it to work.

Here is the mapping that I tried to use:

{
  "properties": {
    "name": {
      "index": "not_analyzed",
      "type": "string"
    },
    "location": {
      "type": "geo_shape",
      "points_only": true
    }
  }
}

When I try it I get the following error:

{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "Mapping definition for [location] has unsupported parameters:  [points_only : true]"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Mapping definition for [location] has unsupported parameters:  [points_only : true]"
  },
  "status": 400
}
@eskibars
Copy link
Contributor

First, thanks for trying out beta2! I tried as well and can confirm this isn't working as expected. @nknize can you have a look?

@clintongormley
Copy link

Bah, #12893 was mislabelled... it's actually in 2.1.0

Sorry for the confusion - i've updated the changes list and blog post

@Eschon
Copy link
Author

Eschon commented Sep 22, 2015

Too bad, I was really looking forward to trying it out. Well I guess I'll just have to wait for 2.1.0 then.
You also might want to remove it from the documentation for now https://www.elastic.co/guide/en/elasticsearch/reference/2.0/geo-shape.html

@clintongormley
Copy link

Bah again :) So it WAS merged into the 2.0 branch, but after 2.0.0-beta2 was built. Good news is it will be in the next release of 2.0.0. I've added a "coming" tag to the docs.

thanks @Eschon

@alakhdeveloper
Copy link

alakhdeveloper commented Jun 23, 2018

Hello Guys,
I need some help in elasticsearch(2.3) mapping in magento 2.1.

I need to mapp geo_shape.
my code in xml elasticsuite_indices.xml:

When i try to index it throwing error message:
mapper_parsing_exception: Mapping definition for [coordinates] has unsupported parameters: [norms : {enabled=false}] [doc_values : true]

what i am missing in mapping xml code?

I am trying to mapping like:
"hyperlocal" : {
"type" : "nested",
"properties" : {
"location" : {
"type" : "geo_shape"
},
"sellerid" : {
"type" : "integer"
}
}
}

@dadoonet
Copy link
Member

@alakhdeveloper Please ask this question on discuss.elastic.co where we can give a better support.

Thanks!

@alakhdeveloper
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants