Class LearningToRank.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<LearningToRank.Builder>
co.elastic.clients.elasticsearch.core.search.LearningToRank.Builder
- All Implemented Interfaces:
WithJson<LearningToRank.Builder>
,ObjectBuilder<LearningToRank>
- Enclosing class:
- LearningToRank
public static class LearningToRank.Builder
extends WithJsonObjectBuilderBase<LearningToRank.Builder>
implements ObjectBuilder<LearningToRank>
Builder for
LearningToRank
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aLearningToRank
.final LearningToRank.Builder
Required - The unique identifier of the trained model uploaded to Elasticsearchfinal LearningToRank.Builder
Named parameters to be passed to the query templates used for featurefinal LearningToRank.Builder
Named parameters to be passed to the query templates used for featureprotected LearningToRank.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelId
Required - The unique identifier of the trained model uploaded to ElasticsearchAPI name:
model_id
-
params
Named parameters to be passed to the query templates used for featureAPI name:
params
Adds all entries of
map
toparams
. -
params
Named parameters to be passed to the query templates used for featureAPI name:
params
Adds an entry to
params
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<LearningToRank.Builder>
-
build
Builds aLearningToRank
.- Specified by:
build
in interfaceObjectBuilder<LearningToRank>
- Throws:
NullPointerException
- if some of the required fields are null.
-