question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

script_fields not work after upgrade to kuzzle version 2

See original GitHub issue

After 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:closed
  • Created 4 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cklinxcommented, Dec 18, 2019

Really thanks guys! With your examples its works!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found