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.BuilderRequired - The unique identifier of the trained model uploaded to Elasticsearchfinal LearningToRank.BuilderNamed parameters to be passed to the query templates used for featurefinal LearningToRank.BuilderNamed parameters to be passed to the query templates used for featureprotected LearningToRank.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
paramsAdds all entries of
maptoparams. -
params
Named parameters to be passed to the query templates used for featureAPI name:
paramsAdds an entry to
params. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<LearningToRank.Builder>
-
build
Builds aLearningToRank.- Specified by:
buildin interfaceObjectBuilder<LearningToRank>- Throws:
NullPointerException- if some of the required fields are null.
-