Skip to content

[Question]: Question about the hard limit of 10000 in doc_metadata_service.py for document metadata #16170

Description

@liang0112-ne

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Describe your problem

There is a hard-coded limit=10000 in doc_metadata_service.py, which applies to both metadata updates and document metadata display in knowledge bases. I would like to ask why this limit was introduced.
For knowledge bases with more than 10,000 documents, metadata can still be updated via missing_doc, which makes this limit seem redundant for the update scenario. However, the display function cannot bypass the 10000 retrieval cap.
Could you consider adopting other Elasticsearch APIs to remove this restriction? Also, is there any official plan to optimize or adjust this limit in future releases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions