[ckan-changes] commit/ckan: John Glover: [solr] [1277] Bug fix: quote facet values

Bitbucket commits-noreply at bitbucket.org
Wed Aug 31 19:44:07 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/51bc3a844e09/
changeset:   51bc3a844e09
branch:      feature-1275-solr-search
user:        John Glover
date:        2011-08-31 21:43:50
summary:     [solr] [1277] Bug fix: quote facet values
affected #:  1 file (2 bytes)

--- a/ckan/controllers/package.py	Wed Aug 31 20:21:39 2011 +0100
+++ b/ckan/controllers/package.py	Wed Aug 31 20:43:50 2011 +0100
@@ -144,7 +144,7 @@
                 if not param in ['q', 'open_only', 'downloadable_only', 'page'] \
                         and len(value) and not param.startswith('_'):
                     c.fields.append((param, value))
-                    q += " %s: %s" % (param, value)
+                    q += ' %s: "%s"' % (param, value)
 
             context = {'model': model, 'session': model.Session,
                        'user': c.user or c.author}

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list