Hi @ Rioghan Cunniffe
As per my understanding, it seems like the issue with the FullTextScore function throwing a "payload must exist nested within the outer payload field" error might be related to the syntax or the way the query is structured. Based on the documentation, the FullTextScore function can only be used in an ORDER BY RANK clause and cannot be part of a projection (e.g., SELECT VALUE FullTextScore(...) is invalid).
To resolve this, you might need to adjust your query to remove the VALUE keyword, as you mentioned in your follow-up. Here's an example of how the query could look:
SELECT TOP 10 c.description
FROM c
ORDER BY RANK FullTextScore(c.description, ['allocation'])
This aligns with the expected usage of FullTextScore as described in the documentation. Additionally, ensure that your indexing policy includes the necessary full-text indexes for the properties you're querying.
If you're planning to combine VectorDistance and FullTextScore for hybrid search, you might need to carefully structure your query to ensure compatibility with both scoring functions.
please go through this documentation that might helps you:
https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/fulltextscore