-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store_fields it will no longer extract values from the _source, use m…
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -507,9 +507,25 @@ public function testDeleteByQueryWithQueryAndOptions() | |
*/ | ||
public function testGetDocumentWithFieldsSelection() | ||
{ | ||
$this->_markSkipped50('Currently seems like stored_fields does not work as expected -> requires mapping?'); | ||
$index = $this->_createIndex(); | ||
|
||
$type = new Type($index, 'test'); | ||
$mapping = new Mapping(); | ||
$mapping->setProperties([ | ||
'name' => [ | ||
'type' => 'string', | ||
'store' => 'yes', ], | ||
'email' => [ | ||
'type' => 'string', | ||
'store' => 'yes', ], | ||
'country' => [ | ||
'type' => 'string' | ||
] | ||
]); | ||
|
||
$mapping->disableSource(); | ||
$type->setMapping($mapping); | ||
|
||
$type->addDocument(new Document(1, ['name' => 'loris', 'country' => 'FR', 'email' => '[email protected]'])); | ||
$index->refresh(); | ||
|
||
|