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

Skip to a specific value #4

Open
fulmicoton opened this issue Jul 16, 2018 · 3 comments
Open

Skip to a specific value #4

fulmicoton opened this issue Jul 16, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@fulmicoton
Copy link

fulmicoton commented Jul 16, 2018

Recently Elias Fano has become more popular to represent posting lists in search engine.

In order to intersect two positng lists efficiently, it is then required to have an efficient implementation of skipping to a specific document.

In tantivy, the interface is as follows.

One of the main benefits of Elias Fano is that it makes it easy to skip rapidly by counting zeroes and ones in the unary encoded high bits bit sequence.

@tomarrell
Copy link
Owner

Hi, thanks for the issues.

Just so I'm clear on what your requirement for this one is, you would like to given a particular value, skip the internal iterator to the position in the struct which is equal to or greater than the provided value?

If that's the case, I'll get to work on the implementation.

Thanks!

@fulmicoton
Copy link
Author

That's the use case yes... Just to be clear I will not be able use your crate either way. I had plans to try using Elias-Fano in tantivy to represent positions, but that probably won't happen any time soon. I believe skipping is a very common requirement for elias fano clients however.

@tomarrell
Copy link
Owner

No worries, I'm glad to just build out the core functionality for anyone in the future that might find it useful.

@tomarrell tomarrell added the enhancement New feature or request label Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants