noosfero | 2 new commits pushed to repository

Bráulio Bhavamitra gitlab at gitlab.com
Tue Feb 10 16:22:51 BRST 2015


Bráulio Bhavamitra pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>

Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/4f6b72bc00f76cb532c04b8995ab0ed9ae97e446">4f6b72bc</a> by Braulio Bhavamitra
Index lat/lng on articles

- - - - -
<a href="https://gitlab.com/noosfero/noosfero/commit/e0ecc68771b373e7559d0876a1f1a1a3f638ca50">e0ecc687</a> by Bráulio Bhavamitra
Merge branch 'ai2933' into 'master'

Index lat/lng on articles

http://noosfero.org/Development/ActionItem2933

See merge request !46

- - - - -


Changes:

=====================================
app/models/article.rb
=====================================
--- a/app/models/article.rb
+++ b/app/models/article.rb
@@ -767,7 +767,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

=====================================
plugins/solr/lib/ext/article.rb
=====================================
--- 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 => [

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150210/c7b9e97c/attachment-0001.html>


More information about the Noosfero-dev mailing list