Skip to content

Commit

Permalink
Merge branch 'kata-csc-okfn_master'
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 1, 2014
2 parents c6c5993 + 21dd15e commit c942fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/lib/search/query.py
Expand Up @@ -264,7 +264,7 @@ def get_all_entity_ids(self, max_results=1000):
def get_index(self,reference):
query = {
'rows': 1,
'q': 'name:%s OR id:%s' % (reference,reference),
'q': 'name:"%s" OR id:"%s"' % (reference,reference),
'wt': 'json',
'fq': 'site_id:"%s"' % config.get('ckan.site_id')}

Expand Down
2 changes: 1 addition & 1 deletion ckan/logic/action/update.py
Expand Up @@ -1315,7 +1315,7 @@ def process_solr(q):
count = 0
q = []
for id in datasets:
q.append('id:%s' % (id))
q.append('id:"%s"' % (id))
count += 1
if count % BATCH_SIZE == 0:
process_solr(' OR '.join(q))
Expand Down

0 comments on commit c942fe7

Please sign in to comment.