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

LUCENE-10040 Correct TestHnswGraph.testSearchWithAcceptOrds #277

Merged

Conversation

mayya-sharipova
Copy link
Contributor

If we set numSeed = 10, this test fails sometimes because it may mark
expected results docs (from 0 to 9) as deleted which don't end up
being retrieved, resulting in a lower than expected recall.

  • set numSeed to 10 to ensure 10 results are returned
  • add startIndex parameter in createRandomAcceptOrds that allows
    documents before startIndex to be NOT deleted
  • in testSearchWithAcceptOrds use startIndex
    equal to 10 for createRandomAcceptOrds

Relates to #239

If we set numSeed = 10, this test fails sometimes  because it may mark
expected results docs (from 0 to 9) as deleted which don't end up
being retrieved, resulting in a low recall

- set numSeed to 10 to ensure 10 results are returned
- add startIndex paramenter to createRandomAcceptOrds that allows
  documents before startIndex to be NOT deleted
- use startIndex equal to 10 for createRandomAcceptOrds

Relates to apache#239
Copy link
Member

@jtibshirani jtibshirani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this! The approach seems solid.

@mayya-sharipova mayya-sharipova force-pushed the testSearchWithAcceptOrds branch from b184eee to 35ee89a Compare September 4, 2021 12:52
@mayya-sharipova mayya-sharipova merged commit bc161e6 into apache:main Sep 6, 2021
@mayya-sharipova mayya-sharipova deleted the testSearchWithAcceptOrds branch September 6, 2021 10:56
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