Stay organized with collections
Save and categorize content based on your preferences.
publicfinalclassSortOptions
Definition of how to sort documents. You may specify zero or more sort
expressions and set a match scorer. If you have a large index, it is
advisable to set a limit.
a new SortOptions.Builder. Set the parameters for
SortOptions on the Builder, and use the Builder#build() method
to create a concrete instance of SortOptions
[[["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\u003eSortOptions defines how to sort documents, allowing for the specification of multiple sort expressions and a match scorer.\u003c/p\u003e\n"],["\u003cp\u003eIt is recommended to set a limit when dealing with large indexes to enhance performance.\u003c/p\u003e\n"],["\u003cp\u003eSortOptions includes methods to retrieve the set limit, match scorer, and the list of sort expressions.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the \u003ccode\u003enewBuilder()\u003c/code\u003e static method to get a builder that allows for configuration before creating a SortOptions instance.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, with methods like \u003ccode\u003eequals()\u003c/code\u003e, \u003ccode\u003etoString()\u003c/code\u003e, \u003ccode\u003ewait()\u003c/code\u003e etc.\u003c/p\u003e\n"]]],[],null,[]]