NestedQuery

zio.elasticsearch.query.NestedQuery
sealed trait NestedQuery[S] extends ElasticQuery[S]

Attributes

Graph
Supertypes
trait ElasticQuery[S]
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

Sets the ignoreUnmapped parameter to false for this zio.elasticsearch.query.ElasticQuery. Same as ignoreUnmapped(false).

Sets the ignoreUnmapped parameter to false for this zio.elasticsearch.query.ElasticQuery. Same as ignoreUnmapped(false).

Attributes

Returns

a new instance of the zio.elasticsearch.query.ElasticQuery with the ignoreUnmapped value set to false.

See also

#ignoreUnmapped

Inherited from:
HasIgnoreUnmapped (hidden)

Sets the ignoreUnmapped parameter to true for this zio.elasticsearch.query.ElasticQuery. Same as ignoreUnmapped(true).

Sets the ignoreUnmapped parameter to true for this zio.elasticsearch.query.ElasticQuery. Same as ignoreUnmapped(true).

Attributes

Returns

a new instance of the zio.elasticsearch.query.ElasticQuery with the ignoreUnmapped value set to true.

See also

#ignoreUnmapped

Inherited from:
HasIgnoreUnmapped (hidden)
final def innerHits: NestedQuery[S]

Sets the inner hits for this zio.elasticsearch.query.ElasticQuery to the default InnerHits() value.

Sets the inner hits for this zio.elasticsearch.query.ElasticQuery to the default InnerHits() value.

Attributes

Returns

a new instance of the zio.elasticsearch.query.ElasticQuery with the default inner hits.

Inherited from:
HasInnerHits (hidden)

Inherited and Abstract methods

Sets the ignoreUnmapped parameter to control whether to ignore unmapped fields and return empty hits.

Sets the ignoreUnmapped parameter to control whether to ignore unmapped fields and return empty hits.

Value parameters

value

the boolean value for ignoreUnmapped parameter

Attributes

Returns

a new instance of the zio.elasticsearch.query.ElasticQuery with the ignoreUnmapped value set.

Inherited from:
HasIgnoreUnmapped (hidden)
def innerHits(innerHits: InnerHits): NestedQuery[S]

Sets the inner hits configuration for the zio.elasticsearch.query.NestedQuery.

Sets the inner hits configuration for the zio.elasticsearch.query.NestedQuery.

Value parameters

innerHits

the configuration for inner hits

Attributes

Returns

a new instance of the zio.elasticsearch.query.ElasticQuery with the specified inner hits configuration.

Inherited from:
HasInnerHits (hidden)
def scoreMode(scoreMode: ScoreMode): NestedQuery[S]

Sets the ScoreMode for the zio.elasticsearch.query.NestedQuery. The zio.elasticsearch.query.ScoreMode specifies how scores of matching documents are combined for the zio.elasticsearch.query.NestedQuery.

Sets the ScoreMode for the zio.elasticsearch.query.NestedQuery. The zio.elasticsearch.query.ScoreMode specifies how scores of matching documents are combined for the zio.elasticsearch.query.NestedQuery.

Value parameters

scoreMode

the ScoreMode to use for the zio.elasticsearch.query.NestedQuery

  • ScoreMode.Avg: uses the mean relevance score of all matching child objects
  • ScoreMode.Max: uses the highest relevance score of all matching child objects
  • ScoreMode.Min: uses the lowest relevance score of all matching child objects
  • ScoreMode.None: ignores relevance scores of matching child objects and uses 0 as a score
  • ScoreMode.Sum: adds together the relevance scores of all matching child objects

Attributes

Returns

a new instance of the zio.elasticsearch.query.ElasticQuery with the specified zio.elasticsearch.query.ScoreMode.

Inherited from:
HasScoreMode (hidden)