Skip to content

Commit

Permalink
Add title and text fields to index definition
Browse files Browse the repository at this point in the history
  • Loading branch information
johnl committed Feb 6, 2012
1 parent b8b24f2 commit 5ee086e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/news_article_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def self.xapian_db
:news_article_id => { :type => Fixnum, :store => true },
:version => Fixnum,
:source => { :type => String },
:url => { :type => String }
:url => { :type => String },
:title => { :type => String },
:text => { :type => String }
}
@xapian_db = XapianFu::XapianDb.new(:dir => xapian_db_path,
:create => true, :fields => fields,
Expand Down

0 comments on commit 5ee086e

Please sign in to comment.