remove index
This commit is contained in:
parent
54f16a493e
commit
dccbc0492b
|
@ -12,11 +12,11 @@ class SiteFeedAnnc
|
||||||
field :merge_with_category
|
field :merge_with_category
|
||||||
field :remote_site_url
|
field :remote_site_url
|
||||||
field :channel_title
|
field :channel_title
|
||||||
I18n.available_locales.each do |locale|
|
#I18n.available_locales.each do |locale|
|
||||||
index({ "all_contents_for_feed.#{locale}.is_hidden"=> -1,
|
# index({ "all_contents_for_feed.#{locale}.is_hidden"=> -1,
|
||||||
"all_contents_for_feed.#{locale}.is_top"=> -1,
|
# "all_contents_for_feed.#{locale}.is_top"=> -1,
|
||||||
"all_contents_for_feed.#{locale}.postdate"=> -1}, { unique: false, background: true, name: "cache_#{locale}" })
|
# "all_contents_for_feed.#{locale}.postdate"=> -1}, { unique: false, background: true, name: "cache_#{locale}" })
|
||||||
end
|
#end
|
||||||
def get_annc(annc_uid)
|
def get_annc(annc_uid)
|
||||||
Array(self[:all_contents_for_feed]).select{|v| v['id']==annc_uid}[0] rescue {}
|
Array(self[:all_contents_for_feed]).select{|v| v['id']==annc_uid}[0] rescue {}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue