Class Correction

java.lang.Object
org.elasticsearch.search.suggest.phrase.Correction
All Implemented Interfaces:
Comparable<Correction>

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

    Fields
    Modifier and Type
    Field
    Description
     
    static final 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.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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:
      compareTo in interface Comparable<Correction>