Own function in search template

I need to write my own function inside the search template like toJson

.............
"functions": [
				{
					"filter": { 
						"terms": { 
							"empId": {{#my_own_function}}PARAM_VALUE{{/my_own_function}} 
						}
					}, 
					"weight": 20
				}
			],
			"score_mode": "multiply"
.........................................

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.