then, this will sort the documents in descending score order. The scores
will be positive. If you want to sort in ascending order, then use the
following code:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eMatchScorer\u003c/code\u003e class assigns a document score based on term frequency.\u003c/p\u003e\n"],["\u003cp\u003eIt can be used within \u003ccode\u003eSortOptions\u003c/code\u003e to sort documents by score in descending order, which will result in positive scores.\u003c/p\u003e\n"],["\u003cp\u003eTo sort documents in ascending order, the \u003ccode\u003eSortExpression\u003c/code\u003e needs to be passed with the \u003ccode\u003eASCENDING\u003c/code\u003e direction, and the scores will be negative.\u003c/p\u003e\n"],["\u003cp\u003eThe class has an alias in \u003ccode\u003egoogle.appengine.api.search.MatchScorer\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt can raise \u003ccode\u003eTypeError\u003c/code\u003e or \u003ccode\u003eValueError\u003c/code\u003e exceptions if the parameters are invalid.\u003c/p\u003e\n"]]],[],null,[]]