Class SortOptions

    • Method Detail

      • isScore

        public boolean isScore()
        Is this variant instance of kind _score?
      • score

        public ScoreSort score()
        Get the _score variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the _score kind.
      • isDoc

        public boolean isDoc()
        Is this variant instance of kind _doc?
      • doc

        public ScoreSort doc()
        Get the _doc variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the _doc kind.
      • isGeoDistance

        public boolean isGeoDistance()
        Is this variant instance of kind _geo_distance?
      • geoDistance

        public GeoDistanceSort geoDistance()
        Get the _geo_distance variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the _geo_distance kind.
      • isScript

        public boolean isScript()
        Is this variant instance of kind _script?
      • script

        public ScriptSort script()
        Get the _script variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the _script kind.
      • isField

        public boolean isField()
        Is this variant instance of kind field?
      • field

        public FieldSort field()
        Get the field variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the field kind.