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:
a new MatchScorer.Builder. Set the parameters for scorer
on the Builder, and use the Builder#build() method
to create a concrete instance of MatchScorer
[[["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-08-07 UTC."],[[["\u003cp\u003eMatchScorer assigns document scores based on the frequency of terms in TextFields and HTMLFields.\u003c/p\u003e\n"],["\u003cp\u003eAdding a MatchScorer to SortOptions sorts documents in descending order by score, resulting in positive scores.\u003c/p\u003e\n"],["\u003cp\u003eTo sort in ascending order, a SortExpression must be added that utilizes the SCORE_FIELD_NAME with the direction set to ASCENDING, which will produce negative scores.\u003c/p\u003e\n"],["\u003cp\u003eMatchScorer provides a static \u003ccode\u003enewBuilder()\u003c/code\u003e method to create and configure a MatchScorer.Builder.\u003c/p\u003e\n"],["\u003cp\u003eMatchScorer class inherits from java.lang.Object, inheriting functions such as clone, equals, and toString, among other functions.\u003c/p\u003e\n"]]],[],null,[]]