-
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
Dataset search returns different results than search on organisation page #3291
Comments
Heyo. In your Solr log you should have the exact final statement that is being run for both of these queries. Can you post one within the group/org and one without? Many different things modify the end search query. Also, this should definitely not be a facet ("faceting" on a single known value doesn't make much sense). Instead, it should be an |
@TkTech you're right, I meant filter query, as said, I'm not an solr expert and not too familiar with the terms. Here are the two log statements
As you can see, the first one uses This currently leads to the situation, where the first one returns a result, but the second one does not. I don't know why this is the case, but propose to implement the search on the org page in the same way as it is on the dataset page. |
The first query includes dismax parameters like @TkTech you seem the one with more Solr experience so I'll assign you to keep an eye on it |
I just replaced |
In my opinion |
We decided to close old issues that are not actively worked on so that we can focus our effort and attention on issues affecting the current versions of CKAN. If this issue is still affecting the version of CKAN you're working with now, please feel free to comment or reopen the issue. If you do reopen this issue, please update it with new details. One reason it might not have been resolved in the past is that it wasn't clear how a contributor could address the issue. |
I think this is still an issue. We often see different results between the main page and the organization page which is very confusing to the users. In some cases, no results are returned on the organization page. |
CKAN Version if known (or site URL)
2.4 and newer
Please describe the expected behaviour
The search on the organisation page should return the same result as if I'm on the dataset search page with an activated organisation facet (i.e. limited to one organisation).
Please describe the actual behaviour
Currently the search behaves differently, because on the organisation page, an extra parameter is added to the query, which changes the behavior of the Solr search. I noticed, that this extra parameter leads Solr to not use the DisMax Query Parser for a simple search term. I'm not a Solr expert, but I think it's because with the added parameter to query becomes too complex for the simple parser to kick in.
In my CKAN instance this leads to very different search results if I'm on the dataset search page or on an organisation search page.
What steps can be taken to reproduce the issue?
Search for the same search term on the dataset search with a filter to an organisation and run the same search on the organisation search page. The results are different in my case.
I propose to implement the filter on the organisation search term using
the facet, i.e. setting thea filter query, i.e. setting theqf
fq
parameter of Solr. If you agree, I could make a PR to make the search behave the same.It's possible that my Solr setup is not correct, but nontheless, I think it makes sense that these two searches should behave the same (same good/bad that is).
The text was updated successfully, but these errors were encountered: