-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Include not analyzed fields in saved objects #10348
Comments
A multi-field would be nice. I think |
Yeah, and the default mapping for JSON strings is probably sufficient too, though we should probably rethink the mappings anyway. |
I meant the default mapping for the strings we send to elasticsearch in the JSON request, which it maps to a text field with a |
I forgot that we are actually defining the mapping for saved object types |
Do we have any plans to add this to 6.0? Turns out that because we limit the # of saved objects retrieved from our loaders, our sorting is broken, and without this, we can't tell elasticsearch to sort on the title field. #11415 (comment) |
@jbudz ^ (since you were working on the static mappings) |
related: #14754 |
I'm going to close this since I don't think there's anything we'll do globally to address this. Saved object migrations now allow plugins to change their existing mappings, add fields, etc., and the owning plugin for each type of saved object should be making the decisions about how it is stored. If you still want to use this for warning on name collisions, that should be doable now on a type by type basis, so I recommend opening individual issues for the types you'd like to address. |
In working on a solution to #10073, I realize we only have an analyzed title field stored in the .kibana index. I don't think it's possible to do an exact match on an analyzed title field.
I can do a match_phrase but it will return more results then I want (e.g. a search for "New" will return "New Visualization"). I can loop through the results manually, but running into this issue makes me think we should change our index to also store raw, not analyzed fields, in case we want to change this in the future.
Thoughts?
/cc @spalger @epixa ... and platform team I guess?
The text was updated successfully, but these errors were encountered: