-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Teach _search to read search time mappings #59316
Closed
nik9000
wants to merge
20
commits into
elastic:feature/runtime_fields
from
nik9000:search_time_mapping
Closed
Teach _search to read search time mappings #59316
nik9000
wants to merge
20
commits into
elastic:feature/runtime_fields
from
nik9000:search_time_mapping
Commits on Jul 9, 2020
-
Teach _search to read search time mappings
This adds support for search time mappings to the _search API like so: ``` curl -XPOST -HContent-Type:application/json -uelastic:password 'localhost:9200/test/_search?pretty&error_trace' -d'{ "mappings": { "properties": { "cat": { "type": "script", "runtime_type": "keyword", "script": "value(\"cat\")" } } }, "docvalue_fields": ["cat"] }' ``` It just lifts the `mappings` field from the create index and mappings update requests and drops it into the `_search` request. It then gives each mapped field a chance to convert itself into a runtime field. Most mapping can not and will throw an exception that is translated into an HTTP 400 response. The `script` converts itself properly and is available at runtime.
Configuration menu - View commit details
-
Copy full SHA for 1533428 - Browse repository at this point
Copy the full SHA 1533428View commit details
Commits on Jul 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for dc70b42 - Browse repository at this point
Copy the full SHA dc70b42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1938a0e - Browse repository at this point
Copy the full SHA 1938a0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d8e4b3 - Browse repository at this point
Copy the full SHA 9d8e4b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a44788 - Browse repository at this point
Copy the full SHA 5a44788View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7346b8b - Browse repository at this point
Copy the full SHA 7346b8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4891bda - Browse repository at this point
Copy the full SHA 4891bdaView commit details
Commits on Jul 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 77f35cb - Browse repository at this point
Copy the full SHA 77f35cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2011791 - Browse repository at this point
Copy the full SHA 2011791View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b9b34c - Browse repository at this point
Copy the full SHA 2b9b34cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0546dc2 - Browse repository at this point
Copy the full SHA 0546dc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a86ffaa - Browse repository at this point
Copy the full SHA a86ffaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87bf5bf - Browse repository at this point
Copy the full SHA 87bf5bfView commit details
Commits on Jul 21, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 8aeab2f - Browse repository at this point
Copy the full SHA 8aeab2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c12ed0 - Browse repository at this point
Copy the full SHA 3c12ed0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 09aa1f4 - Browse repository at this point
Copy the full SHA 09aa1f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65a5326 - Browse repository at this point
Copy the full SHA 65a5326View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27628d9 - Browse repository at this point
Copy the full SHA 27628d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for acefc5d - Browse repository at this point
Copy the full SHA acefc5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 394ba8f - Browse repository at this point
Copy the full SHA 394ba8fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.