![](/img/trans.png)
[英]elasticsearch-ruby: transforms
我們可以閱讀elasticsearch-ruby CHANGELOG (Vewsion 7.7.0) 我們有新的 API 端點可用。 包括轉換。 他們在這里。 我們使用的是 elasticsearch-ruby 7.15.0。 但是不知道怎么用。 這是我的例子... require 'elas ...
[英]elasticsearch-ruby: transforms
我們可以閱讀elasticsearch-ruby CHANGELOG (Vewsion 7.7.0) 我們有新的 API 端點可用。 包括轉換。 他們在這里。 我們使用的是 elasticsearch-ruby 7.15.0。 但是不知道怎么用。 這是我的例子... require 'elas ...
[英]Permission denied when starting elasticserach cluster in rspec test cases
我在我的 API 應用程序中使用 elasticsearch-ruby gem,該應用程序在 Rails 6 上的 Ruby 上運行。在開發環境中,一切都運行良好,但為了測試,我想使用 elasticsearch-extensions gem 創建測試集群。 當我運行 rspec 並嘗試啟動服務器時 ...
[英]In LogStash, how remove any json/xml field larger than specific size
簡而言之,我在我們公司有這個堆棧用於我們的公司日志: 很常見的做法。 然而,在意外的請求/響應格式中可能存在一個非常大的 xml/json 字段。 I want to remove only this specific field/node no matter which level either ...
[英]Filtering Elastic search result with must and match giving unexpected result
結果包含以下信息 要求我想根據以下條件過濾記錄: id 必須匹配而且 draft_id 應該是non_draft或draft_11 或者用簡單的話id = 24 AND (draft_id = "non_draft" OR draft_id = "draft_11") 如果你看到結果,它只匹配 ...
[英]elasticsearch reindex documents reduce free space
步驟: - elasticsearch 2.3 - 在 ES 中創建文檔 => ~ 使用 1 GB 磁盤 - 在 ES 中更新相同文檔 => ~ 使用 2 GB 磁盤為什么會發生? 是因為版本控制嗎? 是否可以避免磁盤使用量翻倍? 目前我們使用 forcemerge ( https:// ...
[英]Elasticsearch 7 The [standard] token filter has been removed
我正在嘗試升級到 Elasticsearch v7(我正在使用 ruby/rails 客戶端),並且在這樣做並修復了幾個問題后,我遇到了以下錯誤 在檢查重大更改后,確實提到了標准令牌過濾器已被刪除,因為它不會更改 stream 中的任何內容。 我不確定我應該如何在我的配置中反映這一點。 如果我理解正 ...
[英]Elasticsearch ranking shorter/less relevant titles first
我正在使用 Elasticsearch 7.3 進行產品搜索。 產品標題的格式不同,但我對此無能為力。 一些標題可能如下所示: 其他人是這樣的: 如果有人搜索“雪佛蘭輪轂軸承”,“福特輪轂軸承”產品排名第一,雪佛蘭零件排名第二。 如果我從產品標題中刪除所有額外的文本(型號 5528923- ...
[英]Elasticsearch 6.3.2 terms match empty array “plus” others
在我的數據庫中,帖子可以具有零(0)個或多個以數組表示的類別。 當我執行查詢時,要查看這些類別,並傳遞一些值: 而且效果很好,我有期望的記錄。 但是問題出在我想包含那些帖子,其中類別是一個空數組([])的時候。 我正在從舊版本的ES(1.4.5)升級到版本6.3.2,並且此 ...
[英]Nested sorting not working as expected ElasticSearch
要求 使用 custom_field_values 匹配 custom_field_id 對產品進行排序 映射 示例數據 預期的 我應該能夠按custom_field_values.custom_field_id對整個product過濾器進行排序,按custom_field_val ...
[英]How to consume a document in attachment pipeline using elasticsearch ruby?
我正在嘗試將文件附加到Elasticsearch管道中,但沒有任何方法。 對於此電話- 如果您知道,請告訴我。 提前致謝。 ...
[英]How to create ingest pipeline in elasticsearch using elasticsearch-ruby gem
我很掙扎,如何使用elasticsearch-ruby gem創建接收附件管道? 對於此電話- 這是我得到的例外- ...
[英]update elasticcache record without totally replacing it
我正在使用它向彈性緩存索引添加一堆記錄: 現在,我需要更新一條記錄(給定其ID)。 我只想向data哈希添加一個鍵值,而不是替換整個狀態。 如何使用elasticsearch-ruby做到這一點? ...
[英]Can't test with rspec and elasticsearch-extensions on Ubuntu
我已經按照本指南使用Elasticsearch::Extensions::Test::Cluster.start(port: 9250, nodes: 1, timeout: 120) elasticsearch-extensions gem在rspec中運行集成測試,但此刻我運行Elastic ...
[英]How to pass list of values for a particular field in Elastic Search Query
我有一個查詢要從Elastic Search Cluster搜索provider_id 。 我正在使用以下查詢來獲取單個provider_id結果,但需要幫助確定如何傳遞提供者列表。 假設我想搜索provider_ids = [913523, 923523, 923523, 933523, 95 ...
[英]where to specify cluster details when using elastic search gem in Ruby
我想從我的rails應用程序訪問Elastic Search Cluster的數據。 可以說服務器在http://localhost:9200 ,我想訪問端點http://localhost:9200/location/type 。 以下是本文檔,並遇到了此示例: 問題: ...
[英]Faraday::SSLError for Elasticsearch
當前遇到一個問題,我的后台工作人員通過elasticsearch-client與elasticsearch進行通信時,在Faraday內部遇到SSL錯誤。 錯誤是這樣的: SSL_connect returned=1 errno=0 state=SSLv3 read server he ...
[英]How to add OR condition in Elasticsearch ruby query?
在我的用例中,我想在Elasticsearch查詢中添加一個OR條件。 這是我的查詢 我想添加'term' => {"@dest" => ' '}空檢查@dest以及'term' => {"@dest" => dest} 我試圖添加一個or條件,但是它不起 ...
[英]Analyzing the same search field twice returns 0 results on subfield in ElasticSearch
我有一個名為search_text的字段,它是全文搜索字段。 我正在使用ngrams對該字段進行索引,我想添加一個新的子字段search_text.words來對整個單詞進行索引。 我試圖實現這一點,但是查詢search_text.words總是返回0命中。 我正在這樣創建它: ...
[英]validates_uniqueness_of elasticsearch persistence
如何validates_uniqueness_of的彈性搜索持久性。 我在一個包含include語句的模型中 include Elasticsearch::Persistence::Model 我想包括一個唯一性驗證,如validates_uniqueness_of :userna ...
[英]How do I make ElasticSearch Client available application wide?
我在Rails應用程序中使用elasticsearch_ruby 。 我選擇不使用elasticsearch_rails因為我不希望與ActiveRecord對象緊密集成。 使用elasticsearch_ruby和elasticsearch_transport ,創建一個新客戶端,如下 ...