get_function
The function get_function(score_function_name, collection_name, function_name)
return a score function that was previously set as part of Lexical Search or Hybrid Search.
Input -
score_function_name – Specifies one of the following
The name and path of the file containing the logic to be used in the search query, which is described in step #1 above. This loads the contents of this file to a local object.
The name of the function containing the logic to be used in the search
collection_name – Specifies the name of the Collection that contains the data to be searched.
function_name – Assigns the score function a local object name to be used later when running the search query.
Example 1-
Last updated