All Products
Search
Document Center

:static_bm25

Last Updated:Sep 09, 2021

Feature functions

You can use feature functions in sort expressions. Most feature functions can be used only in fine sort expressions. You can combine various syntax and clauses to perform complex sorts.

static_bm25: returns the static text relevance that indicates the matching degree between the query and document

1.Syntax:

static_bm25()

2.Parameters:

None

3.Return value:

The return value is of the FLOAT type. Valid values: [0,1].

4.Scenarios:

Scenario 1: You can use the static_bm25() function in a rough sort expression to calculate the text relevance.

5.Usage notes:

  • You can use this feature function in rough sort expressions.