OData Custom Functions for Search

Search.score()

Search.score() can be used with $orderby in order to arrange the search results by SCORE() in ascending or descending order.

The results can only be sorted by Search.score() if the output of the SCORE() function is available in the search response.

Search.search()

Search.search() is used to define the search term. It accepts the following parameter:

Parameter

Possible Values

Description

query

<search term>

Defines the search term. The syntax of the search query language is used.

Examples

$filter=Search.search(query='sap')

$apply=filter(Search.search(query='Walldorf'))