Merge pull request #335 from dennisrpnw/master
Ensures the AND operator for fq in solr
This commit is contained in:
commit
fd5f2deaf7
|
@ -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,
|
||||||
|
@ -66,7 +66,7 @@ def package_count_for_source(source_id):
|
||||||
Returns the current package count for datasets associated with the given
|
Returns the current package count for datasets associated with the given
|
||||||
source id
|
source id
|
||||||
'''
|
'''
|
||||||
fq = 'harvest_source_id:"{0}"'.format(source_id)
|
fq = '+harvest_source_id:"{0}"'.format(source_id)
|
||||||
search_dict = {'fq': fq}
|
search_dict = {'fq': fq}
|
||||||
context = {'model': model, 'session': model.Session}
|
context = {'model': model, 'session': model.Session}
|
||||||
result = logic.get_action('package_search')(context, search_dict)
|
result = logic.get_action('package_search')(context, search_dict)
|
||||||
|
|
Loading…
Reference in New Issue