Class ElasticsearchEmbeddingStore.Builder
java.lang.Object
dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder
- Enclosing class:
ElasticsearchEmbeddingStore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.build()
configuration
(ElasticsearchConfiguration configuration) Deprecated, for removal: This API element is subject to removal in a future version.dimension is not used anymore.Deprecated, for removal: This API element is subject to removal in a future version.callrestClient(RestClient)
insteadrestClient
(org.elasticsearch.client.RestClient restClient) Deprecated, for removal: This API element is subject to removal in a future version.callrestClient(RestClient)
insteadDeprecated, for removal: This API element is subject to removal in a future version.callrestClient(RestClient)
instead
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serverUrl
Deprecated, for removal: This API element is subject to removal in a future version.callrestClient(RestClient)
instead- Parameters:
serverUrl
- Elasticsearch Server URL- Returns:
- builder
-
apiKey
Deprecated, for removal: This API element is subject to removal in a future version.callrestClient(RestClient)
instead- Parameters:
apiKey
- Elasticsearch API key (optional)- Returns:
- builder
-
userName
Deprecated, for removal: This API element is subject to removal in a future version.callrestClient(RestClient)
instead- Parameters:
userName
- Elasticsearch userName (optional)- Returns:
- builder
-
password
Deprecated, for removal: This API element is subject to removal in a future version.callrestClient(RestClient)
instead- Parameters:
password
- Elasticsearch password (optional)- Returns:
- builder
-
restClient
public ElasticsearchEmbeddingStore.Builder restClient(org.elasticsearch.client.RestClient restClient) - Parameters:
restClient
- Elasticsearch RestClient (optional). Effectively overrides all other connection parameters like serverUrl, etc.- Returns:
- builder
-
indexName
- Parameters:
indexName
- Elasticsearch index name (optional). Default value: "default".- Returns:
- builder
-
dimension
@Deprecated(forRemoval=true) public ElasticsearchEmbeddingStore.Builder dimension(Integer dimension) Deprecated, for removal: This API element is subject to removal in a future version.dimension is not used anymore.- Parameters:
dimension
- Embedding vector dimension.- Returns:
- builder
-
configuration
- Parameters:
configuration
- the configuration to use- Returns:
- builder
-
build
-
restClient(RestClient)
instead