Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
LearningGp merged 5 commits into
agentscope-ai:mainfrom
guanxuc:esStore-payload-1044
Apr 21, 2026
Merged

fix(rag): Add missing payload for ElasticsearchStore#1048
LearningGp merged 5 commits into
agentscope-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.

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.

LGTM

@LearningGp LearningGp merged commit f2e7efe into agentscope-ai:main Apr 21, 2026
5 checks passed
@guanxuc guanxuc deleted the esStore-payload-1044 branch April 21, 2026 04:11
liangxingguang pushed a commit to liangxingguang/agentscope-java that referenced this pull request May 21, 2026
)

## AgentScope-Java Version

1.0.11

## Description

* Fixes: agentscope-ai#1044 
* Add missing payload for `ElasticsearchStore`

## Checklist

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

- [x]  Code has been formatted with `mvn spotless:apply`
- [x]  All tests are passing (`mvn test`)
- [x]  Javadoc comments are complete and follow project conventions
- [x] Related documentation has been updated (e.g. links, examples,
etc.)
- [x]  Code is ready for review
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