Skip to content

Commit

Permalink
Index mapping field of type 'string' has been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
p365labs committed Aug 17, 2017
1 parent c46aad9 commit d645938
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ All notable changes to this project will be documented in this file based on the
- [store](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/mapping-store.html) field only accepts boolean
- Replace IndexAlreadyExistsException with [ResourceAlreadyExistsException](https://github.com/elastic/elasticsearch/pull/21494) [#1350](https://github.com/ruflin/Elastica/pull/1350)
- in order to delete an index you should not delete by its alias now you should delete using the [concrete index name](https://github.com/elastic/elasticsearch/blob/6.0/core/src/test/java/org/elasticsearch/aliases/IndexAliasesIT.java#L445) [#1348](https://github.com/ruflin/Elastica/pull/1348)

- Index mapping field of type [*'string'*](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/string.html) has been removed from Elasticsearch 6.0 codebase [#1353](https://github.com/ruflin/Elastica/pull/1353)

### Bugfixes
- Enforce [Content-Type requirement on the layer Rest](https://github.com/elastic/elasticsearch/pull/23146), a [PR on Elastica #1301](https://github.com/ruflin/Elastica/issues/1301) solved it (it has been implemented only in the HTTP Transport), but it was not implemented in the Guzzle Transport. [#1349](https://github.com/ruflin/Elastica/pull/1349)

Expand All @@ -23,6 +24,7 @@ All notable changes to this project will be documented in this file based on the

### Deprecated


## [5.3.0](https://github.com/ruflin/Elastica/compare/5.2.1...5.3.0)

### Backward Compatibility Breaks
Expand Down
12 changes: 5 additions & 7 deletions test/Elastica/TypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,21 +509,19 @@ public function testDeleteByQueryWithQueryAndOptions()
*/
public function testGetDocumentWithFieldsSelection()
{
$this->markTestSkipped('ES6 update: No handler for type [string] declared on field [name]');

$index = $this->_createIndex();

$type = new Type($index, 'test');
$mapping = new Mapping();
$mapping->setProperties([
'name' => [
'type' => 'string',
'store' => 'yes', ],
'type' => 'text',
'store' => true, ],
'email' => [
'type' => 'string',
'store' => 'yes', ],
'type' => 'text',
'store' => true, ],
'country' => [
'type' => 'string',
'type' => 'text',
],
]);

Expand Down

0 comments on commit d645938

Please sign in to comment.