Put harvest_source_id in quotes to prevent Solr errors

This commit is contained in:
Mikko Koho 2013-11-21 14:14:56 +02:00
parent 928ea061aa
commit c338452872
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ def package_list_for_source(source_id):
''' '''
limit = 20 limit = 20
page = int(request.params.get('page', 1)) page = int(request.params.get('page', 1))
fq = 'harvest_source_id:{0}'.format(source_id) fq = 'harvest_source_id:"{0}"'.format(source_id)
search_dict = { search_dict = {
'fq' : fq, 'fq' : fq,
'rows': limit, 'rows': limit,