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

rename ngrams to contentNgrams #623

Merged
merged 1 commit into from
Jul 19, 2023
Merged

rename ngrams to contentNgrams #623

merged 1 commit into from
Jul 19, 2023

Conversation

keegancsmith
Copy link
Member

The name always bothered me since we had fileNameNgrams as well. Now they are both accessed via a btreeIndex, I also took the opportunity to introduce a helper "ngrams" which returns the correct index depending on if you want filenames or contents.

Test Plan: go test

The name always bothered me since we had fileNameNgrams as well. Now
they are both accessed via a btreeIndex, I also took the opportunity to
introduce a helper "ngrams" which returns the correct index depending on
if you want filenames or contents.

Test Plan: go test
Copy link
Member

@stefanhengl stefanhengl left a comment

Choose a reason for hiding this comment

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

Nice!

@keegancsmith keegancsmith merged commit 0aefb15 into main Jul 19, 2023
8 checks passed
@keegancsmith keegancsmith deleted the k/ngram-helper branch July 19, 2023 10:20
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