diff --git a/app/models/article.rb b/app/models/article.rb index b52bd5b..e5af7c9 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -760,7 +760,7 @@ class Article < ActiveRecord::Base img.nil? ? '' : img.attributes['src'] end - delegate :region, :region_id, :environment, :environment_id, :to => :profile, :allow_nil => true + delegate :lat, :lng, :region, :region_id, :environment, :environment_id, :to => :profile, :allow_nil => true def has_macro? true diff --git a/plugins/solr/lib/ext/article.rb b/plugins/solr/lib/ext/article.rb index 649d742..1559abd 100644 --- a/plugins/solr/lib/ext/article.rb +++ b/plugins/solr/lib/ext/article.rb @@ -29,6 +29,7 @@ class Article {:profile_id => :integer}, :language, {:solr_plugin_category_filter => :integer}, # ordered/query-boosted fields + {:lat => :float}, {:lng => :float}, {:solr_plugin_name_sortable => :string}, :last_changed_by_id, :published_at, :is_image, :updated_at, :created_at, ], :include => [ -- libgit2 0.21.2