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

Error when no results are returned? #89

Open
erosas87 opened this issue Jul 20, 2018 · 0 comments
Open

Error when no results are returned? #89

erosas87 opened this issue Jul 20, 2018 · 0 comments

Comments

@erosas87
Copy link

erosas87 commented Jul 20, 2018

When no results are returned, I get a NoMethodError, specifically "NoMethodError in Catalog#index" for the following line of code:

`(params["range"] && params["range"][solr_field]) ||

(  stats &&

  stats["max"] > stats["min"]) ||

( !stats  && @response.total > 0 )`

That max/min line is the culprit, or where it errors out.

This only occurs when no results are found from the first initial search if no results are found. If the initial search yields results and I narrow down those results further in the facets until there are no results I don't get an error. I am using this for a "year" field. Has anyone else encountered this? Is more information needed?

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

No branches or pull requests

1 participant