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
Timestamp index settings incorrectly stored #3174
Comments
The fix should be setting the field as: Can submit a pull request, but it's a one line change. :) Will do so anyways later on. This issue probably affects the RoutingFieldMapper as well. |
a PR would be awesome maybe including a testcase? |
This issue is one of those times when the test case will be much longer than the fix.:) I will attempt do have a PR shortly. This feature is not essential in my system and I am in the middle of a Lucene 4.3/elasticsearch 0.90 upgrade. However, if 0.90.2 will be released soon, I will work on it first. Any word on its release? |
I finally had time to fix this issue today (day after a holiday is slow around here), and you already fixed it. The fix is easy, but will the current tests simulate the serialization/deserialization of the index settings? Most tests skip this step. |
The routing field also needs to be fixed: (I accidentally created a git branch off another branch, if not I would submit a pull request) |
The index field was serialized as a boolean instead of showing the 'analyed', 'not_analzyed', 'no' options. Fixed by calling indexTokenizeOptionToString() in the builder. Closes elastic#3174
The index field was serialized as a boolean instead of showing the 'analyed', 'not_analzyed', 'no' options. Fixed by calling indexTokenizeOptionToString() in the builder. Closes #3174
The index field was serialized as a boolean instead of showing the 'analyed', 'not_analzyed', 'no' options. Fixed by calling indexTokenizeOptionToString() in the builder. Closes elastic#3174
When setting a timestamp field as not indexed, the value is not saved correctly in the cluster state.
Using the following index template:
Creating a new index (foo-test) with that template works correctly. The mapping returned is as follows:
Notice that the values for the timestamp field now uses boolean values instead of yes/no.
Whenever the cluster state is recovered, the boolean values are still used, causing an exception
The index setting on the timestamp field works correctly on 0.20.0RC1. The biggest change is the toXContent method. The build sets the fields as a boolean: builder.field("index", fieldType.indexed()), which works on other field mappers.
I have not ran the test in a debugger yet, but will do so shortly.
The timestamp field in 0.20.0RC1
The text was updated successfully, but these errors were encountered: