Skip to content

Commit

Permalink
Merge pull request #275 from geoblacklight/boost-query
Browse files Browse the repository at this point in the history
use boost query rather than q
  • Loading branch information
Mike Graves committed Jan 29, 2015
2 parents 875226c + 2a40686 commit 57ba50f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/geoblacklight/controller_override.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module ControllerOverride

def add_spatial_params(solr_params, req_params)
if req_params[:bbox]
solr_params[:q] ||= "*"
solr_params[:q] += " solr_bbox:\"IsWithin(#{req_params[:bbox]})\"^10"
solr_params[:bq] ||= []
solr_params[:bq] = ["solr_bbox:\"IsWithin(#{req_params[:bbox]})\"^10"]
solr_params[:fq] ||= []
solr_params[:fq] << "solr_bbox:\"Intersects(#{req_params[:bbox]})\""
end
Expand Down
2 changes: 1 addition & 1 deletion spec/features/split_view.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
scenario 'spatial search should reset to page one' do
visit '/?per_page=5&q=%2A&page=2'
find("#map").double_click
expect(find('.page_entries')).to have_content('1 entry found')
expect(find('.page_entries')).to have_content('1 - 2 of 2')
end

scenario 'clicking map search should retain current search parameters' do
Expand Down

0 comments on commit 57ba50f

Please sign in to comment.