Class ElasticsearchEmbeddingStore.Builder
java.lang.Object
dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder
- Enclosing class:
ElasticsearchEmbeddingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.build()
configuration
(ElasticsearchConfiguration configuration) Deprecated.dimension is not used anymore.Deprecated.callrestClient(RestClient)
insteadrestClient
(org.elasticsearch.client.RestClient restClient) Deprecated.callrestClient(RestClient)
insteadDeprecated.callrestClient(RestClient)
instead
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serverUrl
Deprecated.callrestClient(RestClient)
instead- Parameters:
serverUrl
- Elasticsearch Server URL- Returns:
- builder
-
apiKey
Deprecated.callrestClient(RestClient)
instead- Parameters:
apiKey
- Elasticsearch API key (optional)- Returns:
- builder
-
userName
Deprecated.callrestClient(RestClient)
instead- Parameters:
userName
- Elasticsearch userName (optional)- Returns:
- builder
-
password
Deprecated.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.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