Skip to content

MB-66295: Introduce BM25Reader interface #68

Merged
abhinavdangeti merged 2 commits intomasterfrom
bm25
Apr 16, 2025
Merged

MB-66295: Introduce BM25Reader interface #68
abhinavdangeti merged 2 commits intomasterfrom
bm25

Conversation

@Thejas-bhat
Copy link
Copy Markdown
Member

  • this is crucial for caching at the snapshot level which can be reused across queries

Comment thread index.go Outdated
@Thejas-bhat Thejas-bhat changed the title MB-66295: Update IndexReader interface to include FieldCardinality MB-66295: Introduce BM25Reader interface Apr 16, 2025
@abhinavdangeti abhinavdangeti merged commit 9b90b04 into master Apr 16, 2025
9 checks passed
@abhinavdangeti abhinavdangeti deleted the bm25 branch April 16, 2025 15:16
@abhinavdangeti
Copy link
Copy Markdown
Member

v1.2.8

abhinavdangeti added a commit to blevesearch/bleve that referenced this pull request Apr 16, 2025
- cache a map which maps the field to its cardinality value so that we
don't create the fieldDict everytime
- Furthermore in the case all the threads have a cache miss, use the
write lock to make sure that we create the fieldDict only once to
minimize garbage.
- Use a separate mutex construct so that the contention is localised to
the metrics gathering and doesn't affect the other threads' TFR
generation.
- blevesearch/bleve_index_api#68

---------

Co-authored-by: Abhinav Dangeti <abhinav@couchbase.com>
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.

3 participants