-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.30.1
-
Component/s: Export to Language
-
None
-
5
Problem Statement/Rationale
What is going wrong? What action would you like the Engineering team to take?
Steps to Reproduce
Add a $search stage in your aggregation, with code similar to this
{ index: 'mflix-movies-fts', text: { query: 'henry', path: 'cast', score: { 'function': { gauss: { path: { value: 'rating', undefined: 50, }, origin: 95, scale: 5, offset: 5, decay: 0.5 } } } } }
Expected Results
User can export to language
Actual Results
An error message appears
no viable alternative at input '[{$search: {\n index: 'mflix-movies-fts',\n text: {\n query: 'henry',\n path: 'cast',\n score: {\n 'function': {\n gauss: {\n path: {\n value: 'rating',\n undefined'
Additional Notes
Tried with quotes like 'undefined' of "undefined" with same result
- is duplicated by
-
COMPASS-6052 Export to code doesn't understand "undefined" string
- Open