-
Notifications
You must be signed in to change notification settings - Fork 736
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
WIP: Do not force include_type_name
#1654
Conversation
47974b9
to
0687884
Compare
0687884
to
04aa560
Compare
@thePanz The |
@ruflin I expect these two different ways to create an index: The one with type name included; $create = new Create();
$create->setBody(['mappings' => ['type' => ['properties' => ['field1' => ['type' => 'text']]]]]);
$create->setParams(['include_type_name' => true]);
$index->requestEndpoint($create); And without deprecation: $create = new Create();
$create->setBody(['mappings' => ['properties' => ['field1' => ['type' => 'text']]]]);
$index->requestEndpoint($create); WDYT? Looks like the the current |
include_type_name
include_type_name
Tests are failing, as this would require more work: we currently push the mappings with the |
I like what you proposed above. It reduces the magic which is always good. That we require the type in Mapping sounds now more like a bug. Any chance you could tackle this or is this a rabbit hole? |
@ruflin I will try to spend some time into this, no guarantees tho :) |
Closing, as those changes are done in #1666 |
- [x] Remove mapping's include_type_name (from #1654 ) - [x] Deprecate usage of Type object - [x] copy `setMapping()` from `Type` to `Index` - [x] copy `getDocument()` from `Type` to `Index` - [x] copy `deleteById() from `Type` to `Index` - [x] copy more methods from `Type` to `Index` - [x] Cleanup `Client` methods requiring `Type` #1668 - [x] Remove `Type` class (<== needs clarification) - [x] Cleanup `Search->addType()` #1669 - [x] Cleanup `Search->addTypes()` #1669 - [x] Cleanup `Bulk` class from `Type` #1670 - [x] Fix tests
Do not arbitrary alter the
requestEndpoint
for index creation or when pushing mappings, theinclude_type_name
should be configured on the endpoint, not added by the client