Skip to content

Commit 96a65d7

Browse files
committed
Index mapping field of type 'string' has been removed
1 parent 2418e03 commit 96a65d7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file based on the
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)
1414
- Removed ```optimize``` from Index class as it has been deprecated in ES 2.1 and removed in [ES 5.x+](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/indices-optimize.html) use forcemerge [#1351](https://github.com/ruflin/Elastica/pull/1350)
15+
- 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)
1516

1617
### Bugfixes
1718
- 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)
@@ -24,6 +25,7 @@ All notable changes to this project will be documented in this file based on the
2425

2526
### Deprecated
2627

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

2931
### 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)