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

Returning bytesRead per query as part of searchResult #142

Merged
merged 6 commits into from
Nov 9, 2022

Conversation

Thejas-bhat
Copy link
Member

No description provided.

read.go Outdated
@@ -22,7 +22,7 @@ func (s *SegmentBase) getDocStoredMetaAndCompressed(docNum uint64) ([]byte, []by
meta := s.mem[storedOffset+n : storedOffset+n+metaLen]
data := s.mem[storedOffset+n+metaLen : storedOffset+n+metaLen+dataLen]

s.incrementBytesRead(metaLen + dataLen)
// s.incrementBytesRead(metaLen + dataLen)
Copy link
Member

Choose a reason for hiding this comment

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

Why the commented code?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah resolving them, my bad.

read.go Outdated
@@ -41,7 +41,7 @@ func (s *SegmentBase) getDocStoredOffsets(docNum uint64) (
dataLen, read := binary.Uvarint(s.mem[storedOffset+n : storedOffset+n+binary.MaxVarintLen64])
n += uint64(read)

s.incrementBytesRead(n)
// s.incrementBytesRead(n)
Copy link
Member

Choose a reason for hiding this comment

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

Ditto.

@abhinavdangeti
Copy link
Member

@Thejas-bhat Use [email protected] and [email protected].

Copy link
Member

@abhinavdangeti abhinavdangeti left a comment

Choose a reason for hiding this comment

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

It seems this PR is incomplete.

@Thejas-bhat
Copy link
Member Author

Yeah, fixed the implementation now.

@abhinavdangeti abhinavdangeti merged commit 96a016b into blevesearch:master Nov 9, 2022
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