-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quirks with Solr6 #3510
Comments
For point 2, a very small change should be forward and backwards compatible and safe for back-porting. Ex: diff --git a/ckan/controllers/group.py b/ckan/controllers/group.py
index 087209f..912c402 100644
--- a/ckan/controllers/group.py
+++ b/ckan/controllers/group.py
@@ -236,6 +236,9 @@ class GroupController(base.BaseController):
'for_view': True, 'extras_as_string': True}
q = c.q = request.params.get('q', '')
+ if q is not None and q.strip():
+ q = 'text:{q}'.format(q=q)
+
# Search within group
if c.group_dict.get('is_organization'):
q += ' owner_org:"%s"' % c.group_dict.get('id') |
Because current versions break CKAN search - reported for Solr 6 here: ckan/ckan#3510, I got same errors with Solr 5.5.4.
Is solR 6.0.0 supported with CKAN 2.7.2 ? I'm getting this error:
I read in stack overflow to downgrade the solR to v5.0.0. |
Some quirks with CKAN and up-to-date versions of Solr:
[ckan] default search field in schema is text. WARNING: Deprecated,​ please use 'df' on request instead.
q=test +owner_org:...
fails,q=text:test +owner_org:...
works,q=test
works).The text was updated successfully, but these errors were encountered: