-
Notifications
You must be signed in to change notification settings - Fork 86
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
Adding maxScore to result #38
Comments
Hi Megan, thanks for this, that's great. I've a feeling that maxScore isn't self.maxScore = node.attrib.get('maxScore') instead, just in case someone is using this with an older version. And it would be great if you could work on some tests for SolrResult Thanks, On 8 January 2012 17:47, megbragg
|
Hi Toby - Oops you're right, maxScore isn't always available, so it should be a more careful check. And I agree about converting to a float. (In my project, we are always exposing the score, which is why that has always worked for me :) I'll work on some score detection for the SolrResult and conditionally adding maxScore to it, and some initialization tests. Best, |
Hello -
I'm a new sunburnt user - so far it is working amazingly well for my project and I look forward to following the project.
For the work I'm doing, I've needed maxScore from SOLr, which was easy for me to add to the SolrResult object. (see line with self.maxScore below, that's the only change)
(sunburnt/schema.py):
For now I am just ensuring that my virtualenv has that line in its sunburnt install, but would obviously love to see support added to the library at some point. I haven't had a chance to write any tests yet, but notice that perhaps a test of SolrResult initialization could be useful in general. I'm happy to work on that and other tests to support the project - just figured I'd send along the small issue comment to get started.
Best,
Megan.
The text was updated successfully, but these errors were encountered: