Skip to content

Commit d645938

Browse files
committed
Index mapping field of type 'string' has been removed
1 parent c46aad9 commit d645938

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ All notable changes to this project will be documented in this file based on the
1111
- [store](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/mapping-store.html) field only accepts boolean
1212
- Replace IndexAlreadyExistsException with [ResourceAlreadyExistsException](https://github.com/elastic/elasticsearch/pull/21494) [#1350](https://github.com/ruflin/Elastica/pull/1350)
1313
- 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)
14-
14+
- 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)
15+
1516
### Bugfixes
1617
- 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)
1718

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

2425
### Deprecated
2526

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

2830
### Backward Compatibility Breaks

test/Elastica/TypeTest.php

+5-7
Original file line numberDiff line numberDiff line change
@@ -509,21 +509,19 @@ public function testDeleteByQueryWithQueryAndOptions()
509509
*/
510510
public function testGetDocumentWithFieldsSelection()
511511
{
512-
$this->markTestSkipped('ES6 update: No handler for type [string] declared on field [name]');
513-
514512
$index = $this->_createIndex();
515513

516514
$type = new Type($index, 'test');
517515
$mapping = new Mapping();
518516
$mapping->setProperties([
519517
'name' => [
520-
'type' => 'string',
521-
'store' => 'yes', ],
518+
'type' => 'text',
519+
'store' => true, ],
522520
'email' => [
523-
'type' => 'string',
524-
'store' => 'yes', ],
521+
'type' => 'text',
522+
'store' => true, ],
525523
'country' => [
526-
'type' => 'string',
524+
'type' => 'text',
527525
],
528526
]);
529527

0 commit comments

Comments
 (0)