Skip to content

fix(rag): Add missing payload for ElasticsearchStore#1048

Open
guanxuc wants to merge 5 commits intoagentscope-ai:mainfrom
guanxuc:esStore-payload-1044
Open

fix(rag): Add missing payload for ElasticsearchStore#1048
guanxuc wants to merge 5 commits intoagentscope-ai:mainfrom
guanxuc:esStore-payload-1044

Conversation

@guanxuc
Copy link
Copy Markdown
Contributor

@guanxuc guanxuc commented Mar 26, 2026

AgentScope-Java Version

1.0.11

Description

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@guanxuc guanxuc requested a review from a team March 26, 2026 06:22
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

❌ Patch coverage is 69.23077% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../agentscope/core/rag/store/ElasticsearchStore.java 69.23% 2 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Collaborator

@LearningGp LearningGp left a comment

Choose a reason for hiding this comment

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

Write path looks good (L408-L411), but mapFromEsHit() misses the payload. It's still using the 3-arg constructor instead of retrieving the payload from the ES hit source.

@guanxuc guanxuc requested a review from LearningGp April 14, 2026 09:59
@guanxuc
Copy link
Copy Markdown
Contributor Author

guanxuc commented Apr 14, 2026

@LearningGp Thanks for your review, I have updated the code.

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.

[Bug]:ElasticsearchStore无法保存自定义数据payload

2 participants