Class Correction

org.elasticsearch.search.suggest.phrase.Correction
All Implemented Interfaces:
<Correction>

public final class Correction extends implements <Correction>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    static Correction[]
     
    double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Correction​(double score, DirectCandidateGenerator.Candidate[] candidates)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Lower scores sorts first; if scores are equal, than later terms (zzz) sort first .
    org.apache.lucene.util.BytesRef
    join​(org.apache.lucene.util.BytesRef separator)
     
    org.apache.lucene.util.BytesRef
    join​(org.apache.lucene.util.BytesRef separator, org.apache.lucene.util.BytesRefBuilder result, org.apache.lucene.util.BytesRef preTag, org.apache.lucene.util.BytesRef postTag)
     
    org.apache.lucene.util.BytesRef
    join​(org.apache.lucene.util.BytesRef separator, org.apache.lucene.util.BytesRef preTag, org.apache.lucene.util.BytesRef postTag)
     
     

    Methods inherited from class java.lang.

    , , , , , , , , ,
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public  toString()
      Overrides:
       in class 
    • join

      public org.apache.lucene.util.BytesRef join(org.apache.lucene.util.BytesRef separator)
    • join

      public org.apache.lucene.util.BytesRef join(org.apache.lucene.util.BytesRef separator, org.apache.lucene.util.BytesRef preTag, org.apache.lucene.util.BytesRef postTag)
    • join

      public org.apache.lucene.util.BytesRef join(org.apache.lucene.util.BytesRef separator, org.apache.lucene.util.BytesRefBuilder result, org.apache.lucene.util.BytesRef preTag, org.apache.lucene.util.BytesRef postTag)
    • compareTo

      public int compareTo(Correction other)
      Lower scores sorts first; if scores are equal, than later terms (zzz) sort first .
      Specified by:
       in interface <Correction>