Improve search results by introducing an aggregate post search data

filter. It seems performant despite the extra content being searched.
This commit is contained in:
Robin Ward
2014-08-22 16:55:19 -04:00
parent f171af5fe5
commit e8cade40c7
3 changed files with 30 additions and 7 deletions

View File

@ -195,7 +195,9 @@ describe Search do
it 'returns the post' do
result.should be_present
result[:title].should == topic.title
result[:url].should == reply.url
# The link is to the topic url because it's aggregated
result[:url].should == topic.relative_url
end
end