hey
I have created a function that can rank results but for the ordinary Wix Code user this can be quite a struggle. So I would like to add .rank to the Wix Data collection of features.
let newRankedQuery = query.rank(fieldKey, separator, rankWord);
// So this would be used like this
let newRankedQuery = query.rank("title", " ", "wix");
The query above would rank the whole database query after how many times the word wix occurs in the title field and it will separate all content by space.
let newRankedQuery = query.rank("keywords", ",", "tennis");
The other ranking would rank on the comma separated field keywords and in this case search and count and rank by the word tennis.
This feature would really kick ass! If it was also possible to setup ranking in a Dataset it would help a lot of non-coding Wix Code users.