โ ๏ธ Breaking changes
-
Fix Document model: bad test, attribute bug, and field cleanup (#1113) @nnethercott
๐ migration path
What changed?
- The internal
__doc
field inDocument
has been removed to avoid data duplication. Document.__getattr__
now correctly returns attribute values rather than the attribute name itself.
Impact
- Code relying on internal access to
document._Document__doc
(e.g. through iterators) will break. - Behavior of doc.getattr("field") is now consistent and correct.
What you need to do:
- If you were manually accessing
document._Document__doc
, switch to using direct attribute access or casting withdict(doc)
.
example updated usage
doc = index.get_document("foo") doc_dict = dict(doc) doc_dict.pop("_Document__doc") # โ Not needed anymore
- The internal
-
Refactor
TaskResults
,IndexStats
(#1066) @ellnix (โ ๏ธ this potentially have a breaking-change)
๐ Enhancements
- Add composite embedders and pooling for Hugging Face models (#1104) @nnethercott
- Give helpful error message when missing protocol in API URL (#1096) @ellnix
- Add methods for new index settings:
facetSearch
andprefixSearch
(#1068) @thicolares - Add
disableOnNumbers
to typo tolerance settings (#1116) @nnethercott - Add support for
Networks
feature (#1097) @MuddyHope
โ๏ธ Maintenance/misc
- Add
merge_group
to trigger tests (#1117) @brunoocasali - Fix CI (#1118) @brunoocasali
Thanks again to @MuddyHope, @brunoocasali, @ellnix, @nnethercott, @thicolares! ๐