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

Fixed Vector.insert when index of new element is less than first element #143

Merged
merged 1 commit into from
Apr 9, 2015
Merged

Fixed Vector.insert when index of new element is less than first element #143

merged 1 commit into from
Apr 9, 2015

Conversation

richardpoole
Copy link
Contributor

I had an issue with Index.search() returning some results with a score of zero. The problem was that it was building a queryVector with out-of-order elements (e.g. 55/brazil, 52/brabant, 53/bracknell, 54/bratislava), which turned out to be a bug in the Vector.insert() method. The first element inserted could never be preceded by any other elements, leading to the strange order seen above.

@olivernn olivernn merged commit 2ced8f7 into olivernn:master Apr 9, 2015
@olivernn
Copy link
Owner

olivernn commented Apr 9, 2015

This change is included in the latest release 0.5.8, thanks for your help!

@richardpoole
Copy link
Contributor Author

No problem at all. Thanks for all your hard work making this library in the first place!

@richardpoole richardpoole deleted the patch-2 branch April 13, 2015 17:22
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

Successfully merging this pull request may close these issues.

2 participants