Skip to content
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

RGI search bar not functioning #49

Closed
t-morrison opened this issue May 15, 2017 · 7 comments
Closed

RGI search bar not functioning #49

t-morrison opened this issue May 15, 2017 · 7 comments

Comments

@t-morrison
Copy link
Member

No results under any searches other than " " (blank space):

See:

image

@mattfullerton
Copy link
Contributor

That's a bug, which I cannot easily explain. Searching for datasets works on the dataset page:
http://li1665-139.members.linode.com/dataset

And turns up datasets that are within the organization, whose's page's search in turn shows no results for the same query.

@mattfullerton
Copy link
Contributor

May be related: ckan/ckan#3291

@mattfullerton
Copy link
Contributor

Notes:
...very different solr queries

solr | 2017-05-29 13:54:09.112 INFO (qtp575335780-18) [ x:ckan] o.a.s.c.S.Request [ckan] webapp=/solr path=/select params={facet.limit=50&q=oil+owner_org:"af7b4806-190c-4f76-b765-6891d29ccea9"&facet.field=category&facet.field=country&facet.field=assessment_type&facet.field=question&facet.field=res_format&facet.field=openness_score&fl=id+validated_data_dict&start=0&sort=score+desc,+metadata_modified+desc&fq=&fq=%2Bsite_id:"default"&fq=%2Bstate:active&facet.mincount=1&rows=21&facet=true&wt=json} hits=0 status=0 QTime=0

solr | 2017-05-29 13:55:09.340 INFO (qtp575335780-15) [ x:ckan] o.a.s.c.S.Request [ckan] webapp=/solr path=/select params={mm=2<-1+5<80%25&facet.field=category&facet.field=country&facet.field=assessment_type&facet.field=question&facet.field=res_format&facet.field=openness_score&fl=id+validated_data_dict&start=0&sort=score+desc,+metadata_modified+desc&fq=organization:"rgi"+%2Bdataset_type:dataset&fq=%2Bsite_id:"default"&fq=%2Bstate:active&rows=21&facet.limit=50&q=oil&tie=0.1&defType=dismax&qf=name^4+title^4+tags^2+groups^2+text&facet.mincount=1&wt=json&facet=true} hits=6365 status=0 QTime=20

@mattfullerton
Copy link
Contributor

@mattfullerton
Copy link
Contributor

This might have had something to do with the large amount of churn on organisation creation I had when improving the import - including direct database access. It could also just be that Vitamin are using a better/more compatible Solr. Closing for now, and at some point (especially after visualizations etc. from @moman822 have been replicated on staging or production) I'll restart the derilinx dev site from scratch and hopefully this problem will disappear there also.

@derwas
Copy link

derwas commented Apr 4, 2018

@mattfullerton how did you get this resolved?

@mattfullerton
Copy link
Contributor

@derwas Sorry, I really don't know. I think it's something that might just go away with a reindex?

Other things that spring to mind is that CKAN sometimes refers to organization as owner_org, other times as organization, and sometimes with the "slug" (URL part) and sometimes with the UUID identifier. Burrowing into what SOLR queries are being used in the background (see above) might shed some light.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants