Skip to content

MB-72376: Introducing New Geo-Shape Indexes - #78

Open
Likith101 wants to merge 9 commits into
masterfrom
geo
Open

MB-72376: Introducing New Geo-Shape Indexes#78
Likith101 wants to merge 9 commits into
masterfrom
geo

Conversation

@Likith101

@Likith101 Likith101 commented Jun 26, 2026

Copy link
Copy Markdown
Member
  • Added interfaces for accessing Geo-Shape V2 data from the segments

Comment thread segment.go
// that order) for the documents indexed, each indexed by geo docID.
DocScores() (innerScores, crossScores []uint64)
// BoundingBox returns the bounding box bytes for the given geo docID.
BoundingBox(geoDocID uint64) ([]byte, error)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey Likith,
Why are we representing geoDocID here using uint64, but CrossDocIDs returns geo docIDs as uint32.
Similar query for Shape(geoDocID uint64) ([]byte, error) too.

Comment thread segment.go
Excluded() *roaring.Bitmap
// GetScoreMap returns an empty score map, keyed by geo docID, from a
// segment-level pool.
GetScoreMap() map[uint32]uint64

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Here as well and for PutScoreMap, noticing that geo docID is keyed as uint32 in the map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants