Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

MatchScorer

Stay organized with collections Save and categorize content based on your preferences.
com.google.appengine.api.search.dev

Class MatchScorer



  • public class MatchScorer
    extends Scorer
    A scorer that returns a score based on term frequency divided by document frequency.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  MatchScorer.Result
      Result class for MatchScorer.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MatchScorer() 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static Scorer newInstance(SearchServicePb.SearchParams searchParams, java.util.Map<java.lang.String,java.util.Set<DocumentPb.FieldValue.ContentType>> fieldTypes) 
      Scorer.SearchResults search(IndexSearcher indexSearcher, Query q, int offset, int limit) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MatchScorer

        public MatchScorer()
    • Method Detail

      • newInstance

        public static Scorer newInstance(SearchServicePb.SearchParams searchParams,
                                         java.util.Map<java.lang.String,java.util.Set<DocumentPb.FieldValue.ContentType>> fieldTypes)
      • public Scorer.SearchResults search(IndexSearcher indexSearcher,
                                           Query q,
                                           int offset,
                                           int limit)
                                    throws java.io.IOException
        Specified by:
        search in class Scorer
        Throws:
        java.io.IOException