script_fields not work after upgrade to kuzzle version 2
See original GitHub issueAfter upgrade kuzzle from 1 to version 2, script_fields stop to work. To reproduce if enough execute this query
{
"script_fields": {
"test1": {
"script": {
"lang": "painless",
"source": "doc['Your Variable'].value"
}
}
},
"query": {}
}
Cannot get “test1” in the result but only the normal query.
{
"requestId": "c020782d-1a56-49c3-b585-36f74e01ab4e",
"status": 200,
"error": null,
"controller": "document",
"action": "search",
"collection": "asd",
"index": "asd",
"volatile": null,
"result": {
"hits": [{
"_id": "yTRD1G4BC56TnFTJHsph",
"_score": 1,
"_source": {
"asd": "ppippo",
"_kuzzle_info": {
"author": "-1",
"createdAt": 1575519198812,
"updatedAt": null,
"updater": null
}
}
}
],
"total": 1
}
}
Elasticsearch is 7.4
kuzzle v2
In kuzzle v1 it works fine, any idea?
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Breaking changes - Kuzzle Documentation
Breaking changes #. Table of Contents. External dependencies; API. General; Internal storage changes; Removed errors; Removed events; Removed API methods ...
Read more >https://raw.githubusercontent.com/kuzzleio/setup-s...
1/') $MIN_DOCKER_VER if [ $? -ne 0 ]; then write_error "[✖] This script requires Docker version $MIN_DOCKER_VER or higher to run Kuzzle" echo ......
Read more >kuzzle@1.2.7 vulnerabilities - Snyk
Snyk's security scan found the following vulnerabilities. ... if (err) { console.error(err) process.exit(2) } pm2.start({ script: 'app.js' // fake app.js to ...
Read more >Bulk api v2 upsert - Caritas Castellaneta
If SearchByKey is not passed, the API will update leads based on the ProspectId you pass for ... Bulk V2 and Bulk V2...
Read more >uLx - River Thames Conditions - Environment Agency - GOV.UK
Patrick and robin 10-24-06, Npower league 2 top scorers 2012/13, Contusione cartilagine ... Character trait words that start with v, Heart of glass...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Really thanks guys! With your examples its works!
You also have a complete example of a controller route using the ESClient in the functional tests: