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

Percent attribute #40

Closed
francisl opened this issue Jan 19, 2010 · 4 comments
Closed

Percent attribute #40

francisl opened this issue Jan 19, 2010 · 4 comments
Labels

Comments

@francisl
Copy link

It would be nice to have a percent (%) attribute. Like the current score attribute.

I think xapian already provide this, but not haystack.

@notanumber
Copy link
Owner

I agree, but I don't think this can be added until Haystack itself supports it.

@notanumber
Copy link
Owner

After further investigation, it is possible to add this in the xapian backend, however, it would not be possible to add it to Haystack as Solr and Whoosh do not have a percentage. Because of this, it wouldn't be officially documented in the Haystack documentation.

That said, I'll add it to the Xapian backend as an extra feature.

@notanumber
Copy link
Owner

Added in SHA 5f3ba78.

SearchResult.score is now a percentage. SearchResult.weight has been added to be used if the old, weight, is desired.

@francisl
Copy link
Author

Great! thank you

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

No branches or pull requests

2 participants