![](/img/trans.png)
[英]Which Java ES client should I use with ElasticSearch 7.6 cluster?
我想使用 ElasticSearch 提供的 Java API 客戶端,但我不知道它是否與我的集群兼容。 我看到有 ElasticSearch 高級 REST 客戶端已被新的 Java API 客戶端棄用。 我可以找到有關高級 REST 客戶端支持哪些 ES 集群的信息,但沒有關於新的 Java ...
[英]Which Java ES client should I use with ElasticSearch 7.6 cluster?
我想使用 ElasticSearch 提供的 Java API 客戶端,但我不知道它是否與我的集群兼容。 我看到有 ElasticSearch 高級 REST 客戶端已被新的 Java API 客戶端棄用。 我可以找到有關高級 REST 客戶端支持哪些 ES 集群的信息,但沒有關於新的 Java ...
[英]ElasticSearch ReIndex Request not working in synchronous manner using Java Rest High Level Client
我有 2 個名稱的索引 - source_index , destination_index 兩個索引具有相同的映射。 我編寫了以下代碼來進行重新索引和搜索請求 - 現在我的應用程序只重新索引從source_index到destination_index的選定記錄。 就在重新索引請求之后,我正在de ...
[英]Set timeout in Elastic Java API Client
I am trying to move from Elastic High level rest client to Elastic Java API Client (Low Level Rest Client). 我能夠得到響應,但我想為我的彈性查詢設置超時。 但是這個超時方法正在接受一個字符串 ...
[英]AWS Elasticsearch cluster upgarde from 6.3 to 7
目前 AWS Elasticsearch 集群版本是 6.3,我打算將它升級到 7。重建索引也必須完成。 重新索引需要將 _doc 作為索引的類型,而不是我們的自定義映射類型。 以下是我的查詢: ...
[英]Reindex selected _source fields using Rest high level client in java
我想使用 Rest 高級客戶端重新索引 elasticsearch 中我的文檔中的選定字段。 我知道 elasticsearch 查詢來實現這一點,但我不知道它是使用 rest 客戶端的等效查詢。 以下是我嘗試使用 rest 客戶端實現的 elasticsearch 查詢 - 要在 java 中使用 ...
[英]ES7 Migration :: From Transport Client to API client
我知道存在將 ES7 客戶端從 [TransportClient 遷移到 HighLevelRestClient] 和 [HighLevelRestClient 遷移到 API 客戶端] 的文檔。 但我想檢查是否可以直接從 [TransportClient 遷移到 APIClient] 這可能嗎? ...
[英]Migrating to Elasticsearch 8.x from ES 7.17.5
我們正在使用 Elasticsearch 7.17.5,它由 Java 8 應用程序使用。 我們計划升級到 Elasticsearch 8.x。 由於高級 Rest 客戶端現已棄用,我無法解析依賴關系,以便將 HLRC 現有代碼與 Elasticsearch 版本 8.x 一起使用( 高級客戶端與 ...
[英]Sorting in elastic search using new java api
我正在使用最新的 java API 與彈性搜索服務器進行通信。 我需要以某種排序順序搜索數據。 我已經編寫了上面的代碼,用於按客戶排序的順序獲取搜索結果。 運行程序時出現以下錯誤。 如果我刪除.sort()方法,代碼運行良好。 我的索引配置為以下格式。 } 如果可能的話,請讓我知 ...
[英]Elasticsearch - what the best way to find all indices between two dates for rotating index set up using Java client
我們在 ES ( 7.x) 中的設置是每天以 indexName-yyyy-MM-dd 格式輪換索引我正在嘗試找到預測兩天之間索引的最佳方法,以便我可以將它們包含在 Java Rest 高級客戶端的搜索請求中正如指南所示“限制搜索的索引數量減少了集群的負載並提高了執行性能” 因此,我沒有搜索所有索引 ...
[英]How to know if a reindex from remote task is sucessful or failed in elasticsearch using the java high level rest API
我正在使用 ElasticSeach 高級 rest api 客戶端從另一個集群進行一些自定義重新索引。 ReindexRequest reindexRequest = new ReindexRequest() .setMaxDocs(3000) .setDes ...
[英]Elastic Search: Generating Elastic Search query using Elastic search API
我想知道硬線查詢和通過 API 生成的查詢之間的區別? 我正在使用彈性搜索 API 來構建查詢。 我期望的結果查詢具有以下格式。 但是我使用 ElasticSearch 查詢生成器 API 獲得的 output 具有以下格式。 我觀察到,對於小型數據集,這兩個查詢獲得的結果完全相同。 我不確定它對大 ...
[英]Elasticsearch Spring Data and Elasticsearch HighLevelClient performance for complex aggregations
我試圖找到比較Elasticsearch Spring 數據與 Elasticsearch HighLevelClient的性能的基准,用於搜索查詢與復雜的嵌套聚合之前我做一個。 但我發現的唯一一件事是,如果您需要 CRUD 操作,使用 spring 數據和其他一些功能作為自動配置更容易。 但它們都 ...
[英]GetMappings changes in Elastic Search 7.x
我已將彈性搜索從“ 2.3.4 ”升級到“ 7.10.0 ”。 在更改應用程序代碼時,對以下 GetMappings 情況感到困惑: 舊代碼(2.3.4): 新代碼(7.10.0): 誰能幫我從新代碼的響應中獲取映射數據,get 下應該有什么(請參閱新代碼塊的最后一行,也在 get 參數中詢問)? ...
[英]TotalHits missing after upgrading Elastic Search
我已將彈性搜索從“2.3.4”升級到“7.10.0”。 在我的 build.sbt 下添加了以下依賴項: 通過SearchResponse.getHits().getTotalHits()獲取TotalHits時出現編譯時間問題有人可以幫我解決這個問題嗎? 我認為添加以上三個依賴項就足夠了! ...
[英]How to get value from aggregation buckets in Java for elasticsearch aggregation query result
因此,我已經能夠使用 elasticsearch 高級 restclient 在 Java 中根據需要復制 elasticsearch 查詢。 問題是我無法檢索我想要的值。 在給出代碼之前,我想解決總體目標,以防有更簡單的解決方案(看起來這不應該那么困難。) 總體目標:獲取 'recommender ...
[英]Elasticsearch high level REST client - Indexing has latency
我們最終開始使用高級別的 REST 客戶端,從后端工程的角度簡化查詢的開發。 對於索引,我們使用client.update(request, RequestOptions.DEFAULT)以便創建新文檔並修改現有文檔。 我們看到的問題是,索引被延遲了,幾乎是 5 分鍾。 我看到他們在內部使用異步 h ...
[英]Elasticsearch cluster load balancing best practices
我想了解我是否需要將負載均衡器作為 Elasticsearch 部署的一部分,或者是否將其視為一種好習慣。 據我了解,高級 rest 客戶端以及 Elasticsearch 的傳輸客戶端可以管理節點之間的負載平衡。 所以客戶端需要逗號分隔的端點列表,就是這樣。 中間還有負載均衡器有什么意義嗎? 對於 ...
[英]Change timeout in run time - Elasticsearch RestHighLevelClient
下面是 Rest 客戶端初始化。 有沒有辦法在不重新初始化 rest 客戶端的情況下即時更改超時值? ...
[英]Executing ClusterStateRequest with Java high level rest client
I am converting a codebase that previously used the java TransportClient on an elastic 1.6.2 cluster to use the high level REST http java library. ...
[英]How to get Node status HighLevelRESTClient ElasticSearch
我正在使用 Java HighLevelRestClient 連接到我的 ElasticSearch。我正在執行一項任務以獲取每個節點的健康狀態。 試過: 這樣做時,我得到了所有與集群相關的信息,狀態為“綠色”,節點數=3。 任何幫助,如何獲取具有節點狀態的節點特定信息。 謝謝 ...