XiaoGuo, Liu
XiaoGuo, Liu
I just tried the following example with Chinese lanaguge: PUT my-index/_doc/2?pipeline=langdetect-pipeline { "my_field": "我爱北京天安门" } Then, I tried to use the following one to retrieve the document: GET my-index/_doc/2 The...
 The correct one should be a single back slash:
### Java API client version 8.2 ### Java version JDK 1.8 ### Elasticsearch Version Elastic Stack 8.2 ### Problem description At the link https://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/8.2.2/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.html, it says: `Performs an update on...
https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/_other_authentication_methods.html. The following code: RestClientBuilder builder = RestClient.builder( new HttpHost("localhost", 9200, "http")); Header[] defaultHeaders = new Header[]{new BasicHeader("Authorization", "Bearer u6iuAxZ0RG1Kcm5jVFI4eU4tZU9aVFEwT2F3")}; builder.setDefaultHeaders(defaultHeaders); It should be: RestClientBuilder builder = RestClient.builder( new HttpHost("localhost",...
I am trying it using the latest 7.5.0 Elasticsearch, and I get the error like: ERR Failed to connect: Connection marked as failed because the onConnect callback failed: Error loading...
For the notebook at https://github.com/elastic/elasticsearch-labs/blob/main/supporting-blog-content/vector-search-implementation-guide-api/vector_search_implementation_guide_api.ipynb, "my_metadata" is a text field, and it should not be used in the term filter, and it is the same for the aggregation. The correct...
For self-signed environment, the code does not work. we need to set the certificate in order to establish a connection with Elasticsearch. There are two places to change: 1) index_data.py...
I had a local setup using Elastic Stack 8.14. I tried to run the notebook at https://github.com/elastic/elasticsearch-labs/blob/main/supporting-blog-content/introducing-retrievers/retrievers_intro_notebook.ipynb with some modification to make it work with my local setup. I have...