Stay organized with collections
Save and categorize content based on your preferences.
publicstaticclassMatchScorer.Builder
A builder that constructs MatchScorers.
A MatchScorer will invoke a scorer on each search result. The
following code illustrates building a match scorer to score documents:
[[["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-09-04 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eMatchScorer.Builder\u003c/code\u003e class, which is used to create \u003ccode\u003eMatchScorer\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMatchScorer\u003c/code\u003e objects, once built, are used to score individual search results within a search query.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method in the \u003ccode\u003eMatchScorer.Builder\u003c/code\u003e class constructs and returns a \u003ccode\u003eMatchScorer\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMatchScorer.Builder\u003c/code\u003e class inherits many common methods from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, such as \u003ccode\u003eequals()\u003c/code\u003e and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class MatchScorer.Builder (2.0.0)\n\n public static class MatchScorer.Builder\n\nA builder that constructs [MatchScorers](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.MatchScorer).\nA MatchScorer will invoke a scorer on each search result. The\nfollowing code illustrates building a match scorer to score documents:\n\n\n\n MatchScorer scorer = MatchScorer.newBuilder().build();\n \nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e MatchScorer.Builder \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nMethods\n-------\n\n### build()\n\n public MatchScorer build()\n\nBuilds a [MatchScorer](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.MatchScorer) from the set values."]]