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

Porting multi-filter OR search support from the DLVS branch #546

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

gopalrs
Copy link
Contributor

@gopalrs gopalrs commented May 2, 2024

This PR allows users to specify multiple filter labels during search. Search will return points that match any one of the filter labels.

apps/search_disk_index.cpp Outdated Show resolved Hide resolved
apps/search_disk_index.cpp Show resolved Hide resolved
apps/search_disk_index.cpp Show resolved Hide resolved
apps/search_disk_index.cpp Outdated Show resolved Hide resolved
@@ -109,6 +109,11 @@ class NeighborPriorityQueue
return _cur < _size;
}

void sort()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can remove this

src/pq_flash_index.cpp Outdated Show resolved Hide resolved
const std::vector<LabelT>& label_ids = filter_labels; //avoid renaming.
std::vector<LabelT> lbl_vec;

retset.sort();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cehck why sort is required.

for (const auto &lbl : label_ids)
{ // assuming that number of OR labels is
// less than max frontier size allowed
uint32_t lbl_marker = 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Check if beam width is sufficient to accommodate filters.

src/pq_flash_index.cpp Outdated Show resolved Hide resolved
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