MCPcopy Create free account
hub / github.com/documentdb/documentdb / TsRankFunctionId

Function TsRankFunctionId

pg_documentdb/src/metadata/metadata_cache.c:6844–6860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6842
6843
6844Oid
6845TsRankFunctionId(void)
6846{
6847 InitializeDocumentDBApiExtensionCache();
6848
6849 if (Cache.PostgresTsRankFunctionId == InvalidOid)
6850 {
6851 List *functionNameList = list_make2(makeString("pg_catalog"),
6852 makeString("ts_rank_cd"));
6853 Oid paramOids[3] = { FLOAT4ARRAYOID, TSVECTOROID, TSQUERYOID };
6854 bool missingOK = false;
6855 Cache.PostgresTsRankFunctionId =
6856 LookupFuncName(functionNameList, 3, paramOids, missingOK);
6857 }
6858
6859 return Cache.PostgresTsRankFunctionId;
6860}
6861
6862
6863Oid

Callers 1

EvaluateMetaTextScoreFunction · 0.85

Tested by

no test coverage detected