chewy-gem

    1熱度

    2回答

    我在Rails應用程序上使用具有耐嚼的GEM的ElasticSearch。我會幫助一些翻譯: all.select { |task| (task.start_at.to_date..task.end_at.to_date).cover?(Date.today) } 使用耐嚼的過濾器。我試着長時間做這項工作,但沒有成功。 任何形式的幫助都會很棒。 謝謝

    1熱度

    3回答

    概述 我有公寓,有保留。我的索引保留爲嵌套字段,其中包含start_date和end_date的日期字段。 我使用耐嚼的紅寶石寶石 - 但這個時候沒關係,我想。只需要讓我的查詢正確。 目標 我要取的有或無保留在給定的日期都沒有保留所有可用的公寓。 當前查詢 不幸的是返回所有的公寓: :query => { :bool => { :must_not => [ {

    0熱度

    1回答

    所以我這裏有一個問題... 我使用chewy紅寶石寶石我使用Elasticsearch聚集,因此任何從分揀 => #<Chewy::SnippetPagesIndex::Query:0x007f911c6b1610 @_collection=nil, @_fully_qualified_named_aggs={"chewy::snippetpagesindex"=>{"chewy::snipp

    0熱度

    1回答

    我正在使用elasticsearch在我的應用程序中搜索某些記錄。 filtered: { query: { query_string: { query: "*#{term}*", fields: ["name"] } }, filter: { bool: {

    0熱度

    1回答

    我已經實現了用戶模型(Elasticsearch使用Chewy gem)的搜索。 的意見/搜索/ search.html.erb: <%= form_tag search_path, method: "get" do %> <%= label_tag(:q, "Search by name/ surname/ email:") %> <%= text_field_tag(:q)