Skip to content
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

store_fields don'textract values from the _source, use mapping 'store' (#1184) #1215

Merged
merged 1 commit into from
Nov 12, 2016

Conversation

p365labs
Copy link
Collaborator

The stored_fields parameter will only return stored fields — it will no longer extract values from the _source.

I've updated the test in \Elastica\Test\TypeTest.php::testGetDocumentWithFieldsSelection, there was the need to have "stored" ('store' => 'yes') the fields extracted from the Docuement.

https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_search_changes.html#_literal_fields_literal_parameter

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

### Backward Compatibility Fixes
- Updated Elastica\Test\Suggest\CompletionTest now payload and output are removed
- Updated Elastica\Test\TypeTest::testGetDocumentWithFieldsSelection The stored_fields parameter will only return stored fields — it will no longer extract values from the _source
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think when we just update tests and don't to any chances to the actual code, we don't need the changelog normally. Going to merge it anyways ;-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ruflin ok 👍

@ruflin ruflin merged commit c72a75b into ruflin:master Nov 12, 2016
@p365labs p365labs deleted the add_stored_fields branch November 12, 2016 20:26
Zyqsempai pushed a commit to Zyqsempai/Elastica that referenced this pull request Nov 21, 2016
* fielddata_fields has been deprecated in ES5, use parameter docvalue_fields instead (ruflin#1184)

* Fix Set fielddata=true on [answer] (ruflin#1184)

Change to official docker image (ruflin#1210)

* Switch test environment to official docker image.
* Disable tests with multiple elasticsearch instances.

Update PHPUnit to the most recent version (ruflin#1211)

Prepare release 5.0.0-beta1 (ruflin#1212)

updated CompletionTest, payload and output are removed from completion suggester (ruflin#1184) (ruflin#1213)

store_fields it will no longer extract values from the _source, use mapping 'store' (ruflin#1184) (ruflin#1215)

update tests : use text or keyword instead of string and use boolean for store instaed yes/no (ruflin#1184) (ruflin#1218)

remove shutdown Node|Cluster as _shutdown has been removed (ruflin#1184) (ruflin#1220)

Squashed commits

      - Changed "text" field to "prefix" in suggestions - changed in ElasticSearch 5.0

      - Changed "text" field to "prefix" in suggestions - changed in ElasticSearch 5.0
Zyqsempai pushed a commit to Zyqsempai/Elastica that referenced this pull request Nov 21, 2016
* fielddata_fields has been deprecated in ES5, use parameter docvalue_fields instead (ruflin#1184)

* Fix Set fielddata=true on [answer] (ruflin#1184)

Change to official docker image (ruflin#1210)

* Switch test environment to official docker image.
* Disable tests with multiple elasticsearch instances.

Update PHPUnit to the most recent version (ruflin#1211)

Prepare release 5.0.0-beta1 (ruflin#1212)

updated CompletionTest, payload and output are removed from completion suggester (ruflin#1184) (ruflin#1213)

store_fields it will no longer extract values from the _source, use mapping 'store' (ruflin#1184) (ruflin#1215)

update tests : use text or keyword instead of string and use boolean for store instaed yes/no (ruflin#1184) (ruflin#1218)

remove shutdown Node|Cluster as _shutdown has been removed (ruflin#1184) (ruflin#1220)

Squashed commits

      - Changed "text" field to "prefix" in suggestions - changed in ElasticSearch 5.0

      - Changed "text" field to "prefix" in suggestions - changed in ElasticSearch 5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants