Skip to content

Commit

Permalink
[codeforamerica#18] Spaces instead of tabs for tanker_article_defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Hale committed Sep 2, 2013
1 parent f97db2c commit b8d3464
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions lib/tanker_article_defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ def self.included(base)

index = 'hnlgovanswers-development'
index = 'hnlgovanswers' if Rails.env === 'production'

base.tankit index, :as => 'Article' do
indexes :title
indexes :content_md
indexes :category, :category => true
indexes :tags
indexes :preview
indexes :content_md
indexes :category, :category => true
indexes :tags
indexes :preview

# NLP
indexes :metaphones do
keywords.map { |kw| kw.metaphone }
end
indexes :synonyms do
keywords.map { |kw| kw.synonyms.first(5) }
end
indexes :keywords do
keywords.map { |kw| kw.name }
end
indexes :stems do
keywords.map { |kw| kw.stem }
end
# NLP
indexes :metaphones do
keywords.map { |kw| kw.metaphone }
end
indexes :synonyms do
keywords.map { |kw| kw.synonyms.first(5) }
end
indexes :keywords do
keywords.map { |kw| kw.name }
end
indexes :stems do
keywords.map { |kw| kw.stem }
end
end
end
end
end

0 comments on commit b8d3464

Please sign in to comment.