Skip to content

Conversation

@miguelgrinberg
Copy link
Contributor

@miguelgrinberg miguelgrinberg commented Oct 23, 2025

In 9.2, dense vectors aren't returned unless they are requested explicitly via the _source query parameter. To avoid this breaking change from affecting the DSL module, all Search and AsyncSearch instances created via the Document.search() and AsyncDocument.search() methods are initialized with a _source property that includes the entire list of fields in the document.

There are also a few minor adjustments to the tests for other apparent changes in 9.2.

@miguelgrinberg miguelgrinberg marked this pull request as ready for review October 23, 2025 16:04
@miguelgrinberg miguelgrinberg changed the title Pass explicit field list in document searches Always return dense vectors in searches Oct 24, 2025
@miguelgrinberg miguelgrinberg merged commit cac7ace into elastic:main Oct 24, 2025
16 checks passed
@miguelgrinberg miguelgrinberg deleted the use-explicit-source branch October 24, 2025 15:20
github-actions bot pushed a commit that referenced this pull request Oct 24, 2025
* Pass explicit field list in document searches

* more fixes

* use exclude_vectors=False

* remove unneeded source call

* add missing type hint

(cherry picked from commit cac7ace)
miguelgrinberg added a commit that referenced this pull request Oct 24, 2025
* Pass explicit field list in document searches

* more fixes

* use exclude_vectors=False

* remove unneeded source call

* add missing type hint

(cherry picked from commit cac7ace)

Co-authored-by: Miguel Grinberg <miguel.grinberg@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants