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

ES 5.0 compatibility #55

Closed
shikhar opened this issue Nov 18, 2016 · 10 comments
Closed

ES 5.0 compatibility #55

shikhar opened this issue Nov 18, 2016 · 10 comments

Comments

@shikhar
Copy link
Contributor

shikhar commented Nov 18, 2016

Let's track known issues here.

  1. The mapping from Schema.Type.STRING to string fails because is is not a valid ES type anymore (https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_mapping_changes.html)
@ewencp
Copy link
Contributor

ewencp commented Nov 18, 2016

@shikhar Would probably be good to get the system tests to run against ES 5.0 too, will probably reveal many issues.

@jozanek
Copy link

jozanek commented Jan 6, 2017

So ES 5.x is not yet supported by this library?

@otisg
Copy link

otisg commented Feb 25, 2017

Same question here...

@azell
Copy link

azell commented Mar 27, 2017

I believe that one of the issues with using the string type in ES 5 is combining it with null_value. Omitting the null_value setting in Mapping.java allows ES 5 to create the mapping.

@ewencp
Copy link
Contributor

ewencp commented Apr 5, 2017

It's not fully supported yet (though note that you can still use it -- just the incompatibility noted above). This should get closed once ES 5 support is resolved.

@rusrushal13
Copy link

Is this issue is still open?
I would like to work on it 😄

@babadofar
Copy link

elasticsearch 5.0 will silently convert string to the new text field data type, but in 6.0 this fails miserably.
This line:

@wicknicks
Copy link
Member

wicknicks commented Jan 3, 2018

For ES 6.0 and above, the string type has been completely removed. In order to get the existing elasticsearch-connector to work with ES, we can set schema.ignore to true in the connector configuration. This will skip creating the mappings which causes the tasks to fail.

Importing data into ES will work with the above workaround. When the mappings are not specified, ES server will detect the type using the field mapping rules specified here. A string in your JSON document will most likely be converted into a text type and a keyword type (if it's within the length limits). This will allow full text searches on the analyzed text.

@synhershko
Copy link

See #154 (comment)

@rayokota
Copy link
Member

This is fixed with #169

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

No branches or pull requests

10 participants