Skip to content

Commit

Permalink
Use the raw query handler when searching by id
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Sep 12, 2016
1 parent 4004a00 commit 0cedd03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/search_builders/curation_concerns/single_result.rb
Expand Up @@ -7,7 +7,7 @@ module SingleResult
end

def find_one(solr_parameters)
solr_parameters[:fq] << "_query_:\"{!field f=id}#{blacklight_params.fetch(:id)}\""
solr_parameters[:fq] << "{!raw f=id}#{blacklight_params.fetch(:id)}"
end
end
end
Expand Up @@ -23,7 +23,7 @@
end

it 'adds id to query' do
expect(solr_params[:fq].first).to include('{!field f=id}12345')
expect(solr_params[:fq].first).to include('{!raw f=id}12345')
end
end
end

0 comments on commit 0cedd03

Please sign in to comment.