aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/track_controller.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-05-30 15:48:10 +0100
committerGareth Rees <gareth@mysociety.org>2014-06-25 10:40:37 +0100
commit4d9c89d0e416825eb52a720d74230f547454ba31 (patch)
tree7716d1bd5205beb872b949689f219b56d63f665c /app/controllers/track_controller.rb
parente5a73815f580d296572e11b71b5f3ed320bbe912 (diff)
Use regex based highlighting
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r--app/controllers/track_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb
index c15fb573d..551d9e72e 100644
--- a/app/controllers/track_controller.rb
+++ b/app/controllers/track_controller.rb
@@ -154,7 +154,7 @@ class TrackController < ApplicationController
request.format = 'xml' unless params[:format]
respond_to do |format|
format.json { render :json => @xapian_object.results.map { |r| r[:model].json_for_api(true,
- lambda { |t| view_context.highlight_and_excerpt(t, @xapian_object.words_to_highlight, 150) }
+ lambda { |t| view_context.highlight_and_excerpt(t, @xapian_object.words_to_highlight(:regex => true), 150) }
) } }
format.any { render :template => 'track/atom_feed',
:formats => ['atom'],