延遲索引中記錄它顯示延遲索引仍然能夠刪除記錄要求保存
SOLR請求(14.3ms工作正常,但在記載中保存發送一些刪除請求websolr ...這裏)[path =#parameters = {data:Message 547488,headers:{「Content-Type」=>「text/xml」},方法:post,params:{:wt =>:ruby},query:wt = ruby ,path:update,uri:http://index.websolr.com/solr/index/update?wt=ruby,open_timeout:,read_timeout:}]
SOLR請求(12.4ms)[path =#parameters = {data:Message 547488,headers:{「Content-Type」=>「text/xml「},方法:post,params:{:wt =>:ruby},query:wt = ruby,路徑:update,uri:http://index.websolr.com/solr/index/update?wt=ruby,open_timeout:,read_ti }]
SOLR請求(9.7ms)[path =#parameters = {data:,headers:{「Content-Type」=>「text/xml」},方法:post,params:{:wt =>:ruby},query:wt = ruby,path:update,uri:http://index.websolr.com/solr/index/update?wt=ruby,open_timeout:,read_timeout:}]
這些是針對單個消息創建的3個請求。
這裏是我的搜索塊
searchable :if => proc { |message| !message.user_messages.blank? } do
text :message_body do
CGI.escape(self.body || "")
end
text :subject do
CGI.escape(self.subject || "")
end
text :sender_name do
user.blank? ? "" : user.full_name
end
integer :users_ids, :multiple => true do
user_messages.map{|um| um.user_id}
end
time :created_at
end handle_asynchronously :solr_index
敬請期待它儘快,
感謝
有一個告誡,只需將異步調用'remove_from_index'引入到您的模型中即可。閱讀:http://blog.bigbinary.com/2012/10/11/solr-sunspot-websolr-delayed-job.html – 2013-08-20 11:23:18