object FunctionScoreFunction

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FunctionScoreFunction
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def expDecayFunction(field: String, origin: String, scale: String): DecayFunction[Any]

    Constructs an instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Exp using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Exp using the specified parameters. zio.elasticsearch.query.DecayFunction is used to score a document with a function that decays depending on the distance of a numeric field value of the document from a user given origin. This is similar to a zio.elasticsearch.query.RangeQuery, but with smooth edges instead of boxes.

    field

    the field for which query is specified for

    origin

    the point of origin used for calculating distance

    scale

    defines the distance from origin + offset at which the computed score will equal decay

    returns

    an instance of zio.elasticsearch.query.DecayFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  9. def expDecayFunction[S](field: Field[S, _], origin: String, scale: String): DecayFunction[S]

    Constructs a type-safe instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Exp using the specified parameters.

    Constructs a type-safe instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Exp using the specified parameters. zio.elasticsearch.query.DecayFunction is used to score a document with a function that decays depending on the distance of a numeric field value of the document from a user given origin. This is similar to a zio.elasticsearch.query.RangeQuery, but with smooth edges instead of boxes.

    field

    the type-safe field for which query is specified for

    origin

    the point of origin used for calculating distance

    scale

    defines the distance from origin + offset at which the computed score will equal decay parameter

    returns

    an instance of zio.elasticsearch.query.DecayFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  10. def fieldValueFactor(field: String): FieldValueFactor[Any]

    Constructs an instance of zio.elasticsearch.query.FieldValueFactor using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.FieldValueFactor using the specified parameters. zio.elasticsearch.query.FieldValueFactor function allows you to use a field from a document to influence the score. It is similar to using the zio.elasticsearch.query.ScriptScoreFunction, however, it avoids the overhead of scripting. If used on a multi-valued field, only the first value of the field is used in calculations.

    field

    the field to be extracted from the document

    returns

    an instance of zio.elasticsearch.query.FieldValueFactor that represents the zio.elasticsearch.query.FunctionScoreQuery to be performed.

  11. def fieldValueFactor[S](field: Field[S, _]): FieldValueFactor[S]

    Constructs a type-safe instance of zio.elasticsearch.query.FieldValueFactor using the specified parameters.

    Constructs a type-safe instance of zio.elasticsearch.query.FieldValueFactor using the specified parameters. zio.elasticsearch.query.FieldValueFactor function allows you to use a field from a document to influence the score. It is similar to using the zio.elasticsearch.query.ScriptScoreFunction, however, it avoids the overhead of scripting. If used on a multi-valued field, only the first value of the field is used in calculations.

    field

    the type-safe field to be extracted from the document

    returns

    an instance of zio.elasticsearch.query.FieldValueFactor that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  12. def gaussDecayFunction(field: String, origin: String, scale: String): DecayFunction[Any]

    Constructs an instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Gauss using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Gauss using the specified parameters. zio.elasticsearch.query.DecayFunction is used to score a document with a function that decays depending on the distance of a numeric field value of the document from a user given origin. This is similar to a zio.elasticsearch.query.RangeQuery, but with smooth edges instead of boxes.

    field

    the field for which query is specified for

    origin

    the point of origin used for calculating distance

    scale

    defines the distance from origin + offset at which the computed score will equal decay

    returns

    an instance of zio.elasticsearch.query.DecayFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  13. def gaussDecayFunction[S](field: Field[S, _], origin: String, scale: String): DecayFunction[S]

    Constructs a type-safe instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Gauss using the specified parameters.

    Constructs a type-safe instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Gauss using the specified parameters. zio.elasticsearch.query.DecayFunction is used to score a document with a function that decays depending on the distance of a numeric field value of the document from a user given origin. This is similar to zio.elasticsearch.query.RangeQuery, but with smooth edges instead of boxes.

    field

    the type-safe field for which query is specified for

    origin

    the point of origin used for calculating distance

    scale

    defines the distance from origin + offset at which the computed score will equal decay parameter

    returns

    an instance of zio.elasticsearch.query.DecayFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def linearDecayFunction(field: String, origin: String, scale: String): DecayFunction[Any]

    Constructs an instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Exp using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Exp using the specified parameters. zio.elasticsearch.query.DecayFunction is used to score a document with a function that decays depending on the distance of a numeric field value of the document from a user given origin. This is similar to zio.elasticsearch.query.RangeQuery, but with smooth edges instead of boxes.

    field

    the field for which query is specified for

    origin

    the point of origin used for calculating distance

    scale

    defines the distance from origin + offset at which the computed score will equal decay

    returns

    an instance of zio.elasticsearch.query.DecayFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  18. def linearDecayFunction[S](field: Field[S, _], origin: String, scale: String): DecayFunction[S]

    Constructs a type-safe instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Linear using the specified parameters.

    Constructs a type-safe instance of zio.elasticsearch.query.DecayFunction with decayFunctionType of zio.elasticsearch.query.DecayFunctionType.Linear using the specified parameters. zio.elasticsearch.query.DecayFunction is used to score a document with a function that decays depending on the distance of a numeric field value of the document from a user given origin. This is similar to zio.elasticsearch.query.RangeQuery, but with smooth edges instead of boxes.

    field

    the type-safe field for which query is specified for

    origin

    the point of origin used for calculating distance

    scale

    defines the distance from origin + offset at which the computed score will equal decay parameter

    returns

    an instance of zio.elasticsearch.query.DecayFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. def randomScoreFunction(seed: Long, field: String): RandomScoreFunction[Any]

    Constructs an instance of zio.elasticsearch.query.RandomScoreFunction using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.RandomScoreFunction using the specified parameters. zio.elasticsearch.query.RandomScoreFunction generates scores that are uniformly distributed from 0 up to but not including 1. By default, it uses the internal Lucene doc IDs as a source of randomness, which is very efficient but unfortunately not reproducible since documents might be renumbered by merges.

    seed

    the final score will be computed based on this value and value for field

    field

    the field value that will be used to compute final score

    returns

    an instance of zio.elasticsearch.query.RandomScoreFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  23. def randomScoreFunction[S](seed: Long, field: Field[S, _]): RandomScoreFunction[S]

    Constructs an instance of zio.elasticsearch.query.RandomScoreFunction using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.RandomScoreFunction using the specified parameters. zio.elasticsearch.query.RandomScoreFunction generates scores that are uniformly distributed from 0 up to but not including 1. By default, it uses the internal Lucene doc IDs as a source of randomness, which is very efficient but unfortunately not reproducible since documents might be renumbered by merges.

    seed

    the final score will be computed based on this value and value for field

    field

    the type-safe field for which zio.elasticsearch.query.RandomScoreFunction is specified for

    returns

    an instance of zio.elasticsearch.query.RandomScoreFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  24. def randomScoreFunction(seed: Long): RandomScoreFunction[Any]

    Constructs an instance of zio.elasticsearch.query.RandomScoreFunction using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.RandomScoreFunction using the specified parameters. zio.elasticsearch.query.RandomScoreFunction generates scores that are uniformly distributed from 0 up to but not including 1. By default, it uses the internal Lucene doc IDs as a source of randomness, which is very efficient but unfortunately not reproducible since documents might be renumbered by merges.

    seed

    the final score will be computed based on this value and default value for field which is "_seq_no"

    returns

    an instance of zio.elasticsearch.query.RandomScoreFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  25. def randomScoreFunction(): RandomScoreFunction[Any]

    Constructs an instance of zio.elasticsearch.query.RandomScoreFunction using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.RandomScoreFunction using the specified parameters. zio.elasticsearch.query.RandomScoreFunction generates scores that are uniformly distributed from 0 up to but not including 1. By default, it uses the internal Lucene doc IDs as a source of randomness, which is very efficient but unfortunately not reproducible since documents might be renumbered by merges.

    returns

    an instance of zio.elasticsearch.query.RandomScoreFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed.

  26. def scriptScoreFunction(scriptSource: String): ScriptScoreFunction[Any]

    Constructs an instance of zio.elasticsearch.query.ScriptScoreFunction using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.ScriptScoreFunction using the specified parameters. zio.elasticsearch.query.ScriptScoreFunction function allows you to wrap another zio.elasticsearch.query.ElasticQuery and customize the scoring of it optionally with a computation derived from other numeric field values in the doc using a script expression.

    scriptSource

    the script source to use and create zio.elasticsearch.script.Script that will be used to calculate score

    returns

    an instance of zio.elasticsearch.query.ScriptScoreFunction that represents the zio.elasticsearch.query.FunctionScoreQuery to be performed.

  27. def scriptScoreFunction(script: script.Script): ScriptScoreFunction[Any]

    Constructs an instance of zio.elasticsearch.query.ScriptScoreFunction using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.ScriptScoreFunction using the specified parameters. zio.elasticsearch.query.ScriptScoreFunction function allows you to wrap another zio.elasticsearch.query.ElasticQuery and customize the scoring of it optionally with a computation derived from other numeric field values in the doc using a script expression.

    script

    the zio.elasticsearch.script.Script that will be used to calculate score

    returns

    an instance of zio.elasticsearch.query.ScriptScoreFunction that represents the zio.elasticsearch.query.FunctionScoreQuery to be performed.

  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. def weightFunction(weight: Double): WeightFunction[Any]

    Constructs an instance of zio.elasticsearch.query.WeightFunction using the specified parameters.

    Constructs an instance of zio.elasticsearch.query.WeightFunction using the specified parameters. zio.elasticsearch.query.WeightFunction score allows you to multiply the score by the provided weight.

    weight

    the non-negative number you wish to multiply the score with

    returns

    an instance of zio.elasticsearch.query.WeightFunction that can be used to in zio.elasticsearch.query.FunctionScoreQuery.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped