-
Notifications
You must be signed in to change notification settings - Fork 32
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
When using Splainer: Report of 500 when highlighting failed with NullPointerException #7
Comments
I tried to test the configuration by disabling highlighting component and querying with Splainer. I didn't see any problems. We gracefully downgraded to showing non-highlighted results. Followed up with Ralph Tice (reported it on solr mailing list) on this issue. He shared his solrconfig (which seems very boilerplate). Furthermore, he told me he was using a trunk build of Solr. Trying to get more information. Maybe he has a weird version of Solr? Maybe I haven't captured the right configuration? |
I did a bit more thorough testing and splainer works fine on some of our clusters. The one on which it fails doesn't appear to be highlighting related, and I don't see any 500s anymore. The only real unusual property is that this SolrCloud cluster has ~200 shards. A javascript stack trace appears: Source maps would be helpful, otherwise I will try a local build of Splainer when I get a chance. |
OK, the code block that blows up is this: https://github.com/o19s/splainer-search/blob/master/services/normalDocSvc.js#L10-L14 specifically L12 Looking in console, solrDoc[solrField] results in 498257568033407000 for my document, so slice explodes. |
Good find! You've got integer types your displaying, we're incorrectly expecting Cheers On Tue, Sep 2, 2014 at 8:54 PM, ralph-tice notifications@github.com wrote:
|
Hey @ralph-tice . I applied the fix -- would you mind giving it a go? |
👍 LGTM |
Great! Fixed in c9ac859 |
Gotta love Solr's great error messages. If highlighting is not enabled and you set hl=true, according to Ralph Tice on the Solr mailing list you get a NullPointerException trying to use the highlight component (and from Splainer's PoV an HTTP 500)
Perhaps we should retry the query without hl=true etc when we get a 500
The text was updated successfully, but these errors were encountered: